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
parent 649990ee8b
commit 83a30dfbdf
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8

View file

@ -794,6 +794,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;