Make sure the loginname is set when logging in via cookie
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
15d6a13cfb
commit
5339d216e3
|
@ -743,6 +743,7 @@ class Session implements IUserSession, Emitter {
|
|||
|
||||
//login
|
||||
$this->setUser($user);
|
||||
$this->setLoginName($this->tokenProvider->getToken($sessionId)->getLoginName());
|
||||
$user->updateLastLoginTimestamp();
|
||||
$this->manager->emit('\OC\User', 'postRememberedLogin', [$user]);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue