mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #28413 from nextcloud/fix/app-token-login-name-mismatch-logging
This commit is contained in:
commit
7ab39effd3
1 changed files with 6 additions and 1 deletions
|
|
@ -788,9 +788,14 @@ class Session implements IUserSession, Emitter {
|
|||
|
||||
// Check if login names match
|
||||
if (!is_null($user) && $dbToken->getLoginName() !== $user) {
|
||||
// TODO: this makes it imposssible to use different login names on browser and client
|
||||
// TODO: this makes it impossible to use different login names on browser and client
|
||||
// e.g. login by e-mail 'user@example.com' on browser for generating the token will not
|
||||
// allow to use the client token with the login name 'user'.
|
||||
$this->logger->error('App token login name does not match', [
|
||||
'tokenLoginName' => $dbToken->getLoginName(),
|
||||
'sessionLoginName' => $user,
|
||||
]);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue