Move session_regenerate_id to `login()`

This commit is contained in:
Lukas Reschke 2014-02-21 08:11:07 +01:00
parent fe24aafe7d
commit 69325c5eeb
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ class OC_User {
* Log in a user and regenerate a new session - if the password is ok * Log in a user and regenerate a new session - if the password is ok
*/ */
public static function login($uid, $password) { public static function login($uid, $password) {
session_regenerate_id(true);
return self::getUserSession()->login($uid, $password); return self::getUserSession()->login($uid, $password);
} }