summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-07-09 19:27:21 +0200
committerGitHub <noreply@github.com>2020-07-09 19:27:21 +0200
commitb3c9b166a38b65bc24ee55c111dc19961745fbb2 (patch)
tree8ad042bd3dc98977db13749723873379a03818c2 /lib/private
parentb21713a83328a135dcad14f565988225a054c9a8 (diff)
parentae036b4dfa3f6b8df7366de396b6a337b1dcf0a2 (diff)
downloadnextcloud-server-b3c9b166a38b65bc24ee55c111dc19961745fbb2.tar.gz
nextcloud-server-b3c9b166a38b65bc24ee55c111dc19961745fbb2.zip
Merge pull request #21779 from nextcloud/backport/21499/stable19
[stable19] fix #21285 as oneliner
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Authentication/LoginCredentials/Store.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Authentication/LoginCredentials/Store.php b/lib/private/Authentication/LoginCredentials/Store.php
index f4bedd88a18..24ce917a242 100644
--- a/lib/private/Authentication/LoginCredentials/Store.php
+++ b/lib/private/Authentication/LoginCredentials/Store.php
@@ -112,7 +112,7 @@ class Store implements IStore {
if ($trySession && $this->session->exists('login_credentials')) {
$creds = json_decode($this->session->get('login_credentials'));
- return new Credentials($creds->uid, $creds->uid, $creds->password);
+ return new Credentials($creds->uid, $this->session->get('loginname'), $creds->password);
}
// If we reach this line, an exception was thrown.