Skip to content

Commit

Permalink
Refs PR #241 Pushing one of the changes, moving regenerateId() higher
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed May 5, 2014
1 parent 8a507b6 commit 3d26526
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/Login/Auth.php
Expand Up @@ -76,6 +76,8 @@ public function authenticate()
*/
public function initSession($login, $md5Password, $rememberMe)
{
Session::regenerateId();

$tokenAuth = API::getInstance()->getTokenAuth($login, $md5Password);

$this->setLogin($login);
Expand All @@ -97,7 +99,6 @@ public function initSession($login, $md5Password, $rememberMe)
$cookie->setHttpOnly(true);
$cookie->save();

@Session::regenerateId();

// remove password reset entry if it exists
Login::removePasswordResetInfo($login);
Expand Down

0 comments on commit 3d26526

Please sign in to comment.