function _password_policy_is_current_user in Password Policy 7
Determines whether given user is the current user.
Parameters
object $account: User object.
2 calls to _password_policy_is_current_user()
- password_policy_password_validate in ./
password_policy.module - Password save validate handler.
- _password_policy_get_user_from_form in ./
password_policy.module - Gets from form user for whom password is being validated.
File
- ./
password_policy.module, line 827 - Allows enforcing restrictions on user passwords by defining policies.
Code
function _password_policy_is_current_user($account) {
global $user;
return $user->uid == $account->uid;
}