function noreqnewpass_user_login_final_validate in No Request New Password 6
Same name and namespace in other branches
- 8 noreqnewpass.module \noreqnewpass_user_login_final_validate()
- 7.2 noreqnewpass.module \noreqnewpass_user_login_final_validate()
- 7 noreqnewpass.module \noreqnewpass_user_login_final_validate()
1 string reference to 'noreqnewpass_user_login_final_validate'
- noreqnewpass_form_alter in ./
noreqnewpass.module - Implementation of hook_form_alter().
File
- ./
noreqnewpass.module, line 79
Code
function noreqnewpass_user_login_final_validate($form_id, &$form_states) {
global $user;
if (!$user->uid) {
form_set_error('name', t('Sorry, unrecognized username or password.'));
watchdog('user', t('Login attempt failed for %user.', array(
'%user' => $form_values['name'],
)));
}
}