Merge pull request #7347 from owncloud/patch-headers-already-sent

Fix "headers are already sent" introduced with #6519
This commit is contained in:
Morris Jobke 2014-02-21 12:36:24 +01:00
commit fc209a5944
2 changed files with 1 additions and 1 deletions

View File

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

View File

@ -157,7 +157,6 @@ class Session implements Emitter, \OCP\IUserSession {
if($user !== false) {
if (!is_null($user)) {
if ($user->isEnabled()) {
session_regenerate_id(true);
$this->setUser($user);
$this->setLoginName($uid);
$this->manager->emit('\OC\User', 'postLogin', array($user, $password));