Merge pull request #8213 from JakubOnderka/oidc_undefined_index

fix: [oidc] Undefined index
pull/8218/head
Jakub Onderka 2022-03-17 09:57:09 +01:00 committed by GitHub
commit 72b8daa7a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class Oidc
$this->log($mispUsername, 'Logged in.');
$user = $this->_findUser($settings, ['User.id' => $this->User->id]);
if ($user['User']['sub'] !== $sub) { // just to be sure that we have the correct user
if ($user['sub'] !== $sub) { // just to be sure that we have the correct user
throw new Exception("User {$user['email']} sub doesn't match ({$user['sub']} != $sub)");
}
return $user;