mirror of https://github.com/MISP/MISP
Merge pull request #8213 from JakubOnderka/oidc_undefined_index
fix: [oidc] Undefined indexpull/8218/head
commit
72b8daa7a5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue