Skip to content

Commit

Permalink
Names fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FlamesONE committed Jul 25, 2024
1 parent 2978815 commit 30a1df0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions app/Core/Auth/SocialService.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Nette\Utils\JsonException;
use Throwable;
use DateTime;
use DateInterval;

/**
* Class SocialService
Expand Down Expand Up @@ -296,7 +295,7 @@ protected function registerNewUser(Profile $userProfile, SocialNetwork $socialNe
}

$user = new User();
$user->name = $userProfile->displayName;
$user->name = utf8_encode($userProfile->displayName);
$user->email = !empty($email) ? $email : null;
$user->uri = null;
$user->login = null;
Expand All @@ -307,7 +306,7 @@ protected function registerNewUser(Profile $userProfile, SocialNetwork $socialNe
$userSocialNetwork = new UserSocialNetwork();
$userSocialNetwork->value = $userProfile->identifier;
$userSocialNetwork->url = $userProfile->profileURL;
$userSocialNetwork->name = $userProfile->displayName;
$userSocialNetwork->name = utf8_encode($userProfile->displayName);

$userSocialNetwork->user = $user;
$userSocialNetwork->socialNetwork = $socialNetwork;
Expand Down Expand Up @@ -354,7 +353,7 @@ public function bindSocialNetwork(User $user, string $socialNetworkName): void

$userSocialNetwork->value = $profile->identifier;
$userSocialNetwork->url = $profile->profileURL;
$userSocialNetwork->name = $profile->displayName;
$userSocialNetwork->name = utf8_encode($profile->displayName);
$userSocialNetwork->linkedAt = $now;

if ($token) {
Expand All @@ -366,7 +365,7 @@ public function bindSocialNetwork(User $user, string $socialNetworkName): void
$userSocialNetwork = new UserSocialNetwork();
$userSocialNetwork->value = $profile->identifier;
$userSocialNetwork->url = $profile->profileURL;
$userSocialNetwork->name = $profile->displayName;
$userSocialNetwork->name = utf8_encode($profile->displayName);
$userSocialNetwork->user = $user;
$userSocialNetwork->socialNetwork = $social['entity'];
$userSocialNetwork->linkedAt = new DateTime();
Expand Down
3 changes: 2 additions & 1 deletion app/Themes/standard/assets/styles/pages/lk/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@
}

>img {
object-fit: cover;
object-fit: contain;
width: 100%;
height: 100%;
}

&.active {
Expand Down

0 comments on commit 30a1df0

Please sign in to comment.