Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: Data Object with Activate and Deactivate password.

$
0
0

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


Viewing all articles
Browse latest Browse all 4235

Latest Images

Trending Articles



Latest Images