Skip to content

Commit

Permalink
Update remember.php
Browse files Browse the repository at this point in the history
  • Loading branch information
schultz-it-solutions committed Sep 1, 2017
1 parent 6ec3c84 commit 4d32707
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plugins/system/remember/remember.php
Expand Up @@ -99,7 +99,7 @@ public function onUserLogout($user, $options)
* Method is called before user data is stored in the database
* If activated in the configuration of the rememeber-me plugin, this method resets all #__user_keys for the current user
* when the user changes his/her password, leaving any existing remember-me cookies on any devices useless!
* This functionality was sadly inspired by the horrific events around Alice Ruggles death (see https://www.alicerugglestrust.org )
* This functionality was sadly inspired by the horrific events around Alice Ruggles death
*
* @param array $user Holds the old user data.
* @param boolean $isnew True if a new user is stored.
Expand Down Expand Up @@ -130,12 +130,6 @@ public function onUserBeforeSave($user, $isnew, $data)
return true;
}

// Get the application if not done by JPlugin. This may happen during upgrades from Joomla 2.5.
if (!$this->app)
{
$this->app = JFactory::getApplication();
}

/*
* But now, we need to do something
* Delete all tokens for this user!
Expand Down

0 comments on commit 4d32707

Please sign in to comment.