Source for file MemberPassword.php
Documentation is available at MemberPassword.php
* Keep track of users' previous passwords, so that we can check that new passwords aren't changed back to old ones.
'PasswordEncryption' => 'Varchar',
* Log a password change from the given member.
* Call MemberPassword::log($this) from within Member whenever the password is changed.
static function log($member) {
$record->MemberID = $member->ID;
$record->Password = $member->Password;
$record->PasswordEncryption = $member->PasswordEncryption;
$record->Salt = $member->Salt;
* Check if the given password is the same as the one stored in this record
return ($this->Password === $encryption_details['password']);
|