summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-08-28 16:11:46 +0200
committerGitHub <noreply@github.com>2020-08-28 16:11:46 +0200
commit7b8364e001119aff43a236f2941da0c405c21f29 (patch)
treeb5b92fa00a480204bb942451bae80cc3dd084fac /lib/private/Authentication
parent286bf2b84ffda4c5878026b28aa2bdd0ef75b54a (diff)
parent2c8e7912f30df1d3f2d1be97eba52ebf3761cf26 (diff)
downloadnextcloud-server-7b8364e001119aff43a236f2941da0c405c21f29.tar.gz
nextcloud-server-7b8364e001119aff43a236f2941da0c405c21f29.zip
Merge pull request #21288 from lmamane/master
Return correct loginname in credentials
Diffstat (limited to 'lib/private/Authentication')
-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..6dd7dc3fb73 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, $creds->loginName, $creds->password);
}
// If we reach this line, an exception was thrown.