function aes_password_exists in AES encryption 7
Same name and namespace in other branches
- 5 aes.module \aes_password_exists()
- 6 aes.module \aes_password_exists()
Checks if a users password exists.
// Implements hook_user_view().
function mymodule_user_view($account, $view_mode, $langcode) {
if (aes_password_exists($account->uid)) {
// Your custom code.
}
}
Parameters
int $uid: The user ID.
Return value
bool TRUE if encrypted password is exists and decryptable, FALSE otherwise.
See also
4 calls to aes_password_exists()
- aes_show_password_page in ./
aes.module - Access callback for a separate tab page with password.
- aes_user_alter in ./
aes.module - Implements hook_user_alter().
- aes_user_login in ./
aes.module - Implements hook_user_login().
- aes_user_view in ./
aes.module - Implements hook_user_view().
File
- ./
aes.module, line 279 - Main file of the AES encryption module.
Code
function aes_password_exists($uid) {
return aes_get_password($uid) ? TRUE : FALSE;
}