We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f6c0f6 commit ba04056Copy full SHA for ba04056
1 file changed
src/Auth/Source/Negotiate.php
@@ -215,7 +215,11 @@ public function authenticate(array &$state): void
215
}
216
217
if (($lookup = $this->lookupUserData($uid)) !== null) {
218
- if ($state['core:username'] !== null && strcasecmp($lookup['userPrincipalName'][0], $state['core:username']) !== 0) {
+ if (
219
+ array_key_exists('core:username', $state)
220
+ && $state['core:username'] !== null
221
+ && strcasecmp($lookup['userPrincipalName'][0], $state['core:username']) !== 0
222
+ ) {
223
// The login-hint doesn't match the already authenticated user. Fall back.
224
$this->fallBack($state);
225
return;
0 commit comments