Move session_regenerate_id to `login()`
This commit is contained in:
parent
fe24aafe7d
commit
69325c5eeb
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue