Skip to content
Snippets Groups Projects
Commit 57dba900 authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Issue #3433040 by Anybody, Grevil: Do not return empty array in ApiKeyAuth::authenticate()

parent 6f9b9270
No related branches found
No related tags found
1 merge request!3Fix authenticate() return value
......@@ -83,13 +83,15 @@ class ApiKeyAuth implements AuthenticationProviderInterface {
$account = reset($accounts);
if (isset($account)) {
// Authentication successful:
return $account;
}
break;
}
}
return [];
// Authentication failed
return NULL;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment