function user_login_default_validators
user_login_default_validators()
Set up a series for validators which check for blocked 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. If a distributed authentication module is successful, it should set $form_state['uid'] to a user ID.
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()
File
- modules/user/user.module, line 2149
- Enables the user registration and login system.
Code
function user_login_default_validators() { return array('user_login_name_validate', 'user_login_authenticate_validate', 'user_login_final_validate'); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.module/function/user_login_default_validators/7.x