mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue