Skip to content

Commit

Permalink
Merge pull request #31826 from nextcloud/fix/log-why-credential-token…
Browse files Browse the repository at this point in the history
…-invalid

Log why the login token can't be used for credentials
  • Loading branch information
PVince81 authored Apr 14, 2022
2 parents bccb69f + 69f5f01 commit 478af60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/private/Authentication/LoginCredentials/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ public function getLoginCredentials(): ICredentials {

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;
}

Expand Down

0 comments on commit 478af60

Please sign in to comment.