function user_login_default_validators
Same name and namespace in other branches
- 7.x drupal-7.x/modules/user/user.module \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.
Return value
array A simple list of validate functions.
See also
user_login_authenticate_validate()
2 calls to user_login_default_validators()
- user_login in drupal-6.x/
modules/ user/ user.module - Form builder; the main user login form.
- user_login_block in drupal-6.x/
modules/ user/ user.module
Archivo
- drupal-6.x/
modules/ user/ user.module, line 1332 - Enables the user registration and login system.
Código
function user_login_default_validators() {
return array('user_login_name_validate', 'user_login_authenticate_validate', 'user_login_final_validate');
}