Skip to content

Commit

Permalink
login fix (#937)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Staněk <jan.stanek2@firma.seznam.cz>
  • Loading branch information
jan-stanek and jan-stanek committed Apr 5, 2023
1 parent 5d3531a commit e46b66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function authenticate(string $user, string $password): SimpleIdentity
{
$skautISUser = $this->skautIsService->getUserDetail();

$user = $this->userRepository->findBySkautISUserId($skautISUser->ID);
$user = $this->userRepository->findBySkautISUserId($skautISUser->ID) ?? $this->userRepository->findBySkautISPersonId($skautISUser->ID_Person);

$firstLogin = false;
if ($user === null) {
Expand Down

0 comments on commit e46b66c

Please sign in to comment.