function user_login_final_validate
Same name and namespace in other branches
- 7.x drupal-7.x/modules/user/user.module \user_login_final_validate()
A validate handler on the login form. Should be the last validator. Sets an error if user has not been authenticated yet.
1 string reference to 'user_login_final_validate'
- user_login_default_validators in drupal-6.x/
modules/ user/ user.module - 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…
Archivo
- drupal-6.x/
modules/ user/ user.module, line 1365 - Enables the user registration and login system.
Código
function user_login_final_validate($form, &$form_state) {
global $user;
if (!$user->uid) {
form_set_error('name', t('Sorry, unrecognized username or password. <a href="@password">Have you forgotten your password?</a>', array('@password' => url('user/password'))));
}
}