Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-04-14 21:29:44 +0300
committerGitHub <noreply@github.com>2022-04-14 21:29:44 +0300
commit478af60c1858409cafc28f4ec2c9a51f173f5510 (patch)
tree4d0e52355aa26968ded32c8e25540a4ec704fc9e
parentbccb69f806d536580d33b1992675ed3c6f61dc02 (diff)
parent69f5f014b3ccb6fe4e5d189a0352ec37aab4f8d2 (diff)
Merge pull request #31826 from nextcloud/fix/log-why-credential-token-invalid
Log why the login token can't be used for credentials
-rw-r--r--lib/private/Authentication/LoginCredentials/Store.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Authentication/LoginCredentials/Store.php b/lib/private/Authentication/LoginCredentials/Store.php
index 9055f9b56a2..0ab4c9a37cc 100644
--- a/lib/private/Authentication/LoginCredentials/Store.php
+++ b/lib/private/Authentication/LoginCredentials/Store.php
@@ -98,12 +98,12 @@ class Store implements IStore {
return new Credentials($uid, $user, $password);
} catch (SessionNotAvailableException $ex) {
- $this->logger->debug('could not get login credentials because session is unavailable', ['app' => 'core']);
+ $this->logger->debug('could not get login credentials because session is unavailable', ['app' => 'core', 'exception' => $ex]);
} catch (InvalidTokenException $ex) {
- $this->logger->debug('could not get login credentials because the token is invalid', ['app' => 'core']);
+ $this->logger->debug('could not get login credentials because the token is invalid: ' . $ex->getMessage(), ['app' => 'core', 'exception' => $ex]);
$trySession = true;
} catch (PasswordlessTokenException $ex) {
- $this->logger->debug('could not get login credentials because the token has no password', ['app' => 'core']);
+ $this->logger->debug('could not get login credentials because the token has no password', ['app' => 'core', 'exception' => $ex]);
$trySession = true;
}