]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(user): Log affected user of app token login name mismatch 40798/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 6 Oct 2023 06:51:50 +0000 (08:51 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Fri, 6 Oct 2023 08:32:46 +0000 (08:32 +0000)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/User/Session.php

index 9190a7a72a6934d9ee40929bcd7af81fbfc3a488..8fc3d3e326e8078401f364bd95b5dd25db4edc86 100644 (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;