Skip to content

Commit

Permalink
Fixed auto mapping user (#7024)
Browse files Browse the repository at this point in the history
* Fixed auto mapping user

* Update CHANGELOG.md
  • Loading branch information
luke- committed May 23, 2024
1 parent ef41e8a commit 8162865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ HumHub Changelog

1.15.6 (TBA)
------------
- Fix #7013: Opening more auth clients
- Fix #7013: Opening more auth clients
- Fix #7024: Automatic mapping of existing AuthClient users failed

1.15.5 (May 8, 2024)
--------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public function onAuthSuccess(BaseClient $authClient)
}

$authClientService = new AuthClientService($authClient);
$authClientService->autoMapToExistingUser();

$user = $authClientService->getUser();

Expand All @@ -163,7 +164,6 @@ public function onAuthSuccess(BaseClient $authClient)
return $this->redirect(['/user/auth/login']);
}

$authClientService->autoMapToExistingUser();

if ($user !== null) {
return $this->login($user, $authClient);
Expand Down

0 comments on commit 8162865

Please sign in to comment.