regenerate session id on successful login, fixes integration test
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
7b3fdfeeaa
commit
50844e8c47
|
@ -339,6 +339,8 @@ class Session implements IUserSession, Emitter {
|
|||
throw new LoginException($message);
|
||||
}
|
||||
|
||||
$this->session->regenerateId();
|
||||
|
||||
$this->setUser($user);
|
||||
$this->setLoginName($loginDetails['loginName']);
|
||||
|
||||
|
@ -560,6 +562,8 @@ class Session implements IUserSession, Emitter {
|
|||
// Ignore and use empty string instead
|
||||
}
|
||||
|
||||
$this->manager->emit('\OC\User', 'preLogin', array($uid, $password));
|
||||
|
||||
$user = $this->manager->get($uid);
|
||||
if (is_null($user)) {
|
||||
// user does not exist
|
||||
|
|
Loading…
Reference in New Issue