summaryrefslogtreecommitdiffstats
path: root/lib/private/user/session.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/user/session.php')
-rw-r--r--lib/private/user/session.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/user/session.php b/lib/private/user/session.php
index ba702c9f365..be38b1b1d8e 100644
--- a/lib/private/user/session.php
+++ b/lib/private/user/session.php
@@ -213,6 +213,7 @@ class Session implements IUserSession, Emitter {
* @throws LoginException
*/
public function login($uid, $password) {
+ $this->session->regenerateId();
$this->manager->emit('\OC\User', 'preLogin', array($uid, $password));
$user = $this->manager->checkPassword($uid, $password);
if ($user !== false) {
@@ -243,6 +244,7 @@ class Session implements IUserSession, Emitter {
* @return bool
*/
public function loginWithCookie($uid, $currentToken) {
+ $this->session->regenerateId();
$this->manager->emit('\OC\User', 'preRememberedLogin', array($uid));
$user = $this->manager->get($uid);
if (is_null($user)) {