function _auto_login_url_access in Auto Login URL 7
Access check for Auto login the user.
Parameters
integer $uid: User id.
string $hash: Code that passes through URL.
1 string reference to '_auto_login_url_access'
- auto_login_url_menu in ./
auto_login_url.module - Implements hook_menu().
File
- ./
auto_login_url.module, line 176 - Main file for auto_login_url module.
Code
function _auto_login_url_access($uid, $hash) {
if (!empty($hash) && db_query("SELECT uid FROM {users} WHERE uid = :uid", array(
':uid' => $uid,
))
->fetchField()) {
return TRUE;
}
else {
// Register flood event for this IP.
_auto_login_url_register_flood($hash);
return FALSE;
}
}