Save correct login name

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2017-04-06 15:04:00 +02:00
parent 4eddb95fc4
commit 0a463e55ae
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -573,7 +573,14 @@ class Session implements IUserSession, Emitter {
return false;
}
return $this->completeLogin($user, ['loginName' => $uid, 'password' => $password, 'token' => $dbToken], false);
return $this->completeLogin(
$user,
[
'loginName' => $dbToken->getLoginName(),
'password' => $password,
'token' => $dbToken
],
false);
}
/**