function _password_policy_get_authentication_modules_for_user in Password Policy 7
Gets authentication modules used to authenticate user.
Parameters
object $account: User object.
Return value
array Authentication modules.
1 call to _password_policy_get_authentication_modules_for_user()
- _password_policy_policy_excludes_authentication_module_of_user in ./
password_policy.authmap.inc - Whether policy excludes an authentication module used to authenticate user.
File
- ./
password_policy.authmap.inc, line 54 - Functions to support excluding authentication modules from policies.
Code
function _password_policy_get_authentication_modules_for_user($account) {
return db_query("SELECT module FROM {authmap} WHERE uid = :uid", array(
':uid' => $account->uid,
))
->fetchCol();
}