fix(user): Log affected user of app token login name mismatch

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-10-06 08:51:50 +02:00 committed by backportbot-nextcloud[bot]
parent d950cff568
commit b07007dac4

View file

@ -792,6 +792,8 @@ class Session implements IUserSession, Emitter {
$this->logger->error('App token login name does not match', [
'tokenLoginName' => $dbToken->getLoginName(),
'sessionLoginName' => $user,
'app' => 'core',
'user' => $dbToken->getUID(),
]);
return false;