How do you store the password to deactivate it? Is this password the user login password? To check whether a given string matches the users login password, you can do something like the following which takes a string and checks that this is the users password
$password = "Foo";
$member = Member::currentUser();
$result = $member->checkPassword($password);
if($result && $result->valid()) {
return true; // the given string matches the user password.
}
Posted to: Data Object with Activate and Deactivate password. | Show Thread | Post Reply