user_login_default_validators
- Versions
- 6 – 7
user_login_default_validators()
Set up a series for validators which check for blocked/denied users, then authenticate against local database, then return an error if authentication fails. Distributed authentication modules are welcome to use hook_form_alter() to change this series in order to authenticate against their user database instead of the local users table.
We use three validators instead of one since external authentication modules usually only need to alter the second validator.
See also
@see user_login_authenticate_validate()
See also
Return value
array A simple list of validate functions.
Code
modules/user/user.module, line 1300
<?php
function user_login_default_validators() {
return array('user_login_name_validate', 'user_login_authenticate_validate', 'user_login_final_validate');
}
?>Login or register to post comments 