You are here

function ldapauth_user_login_final_validate in LDAP integration 6

1 string reference to 'ldapauth_user_login_final_validate'
ldapauth_form_alter in ./ldapauth.module
Implements hook_form_alter().

File

./ldapauth.module, line 330
ldapauth provides authentication against ldap server.

Code

function ldapauth_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', 'Login attempt failed for %user.', array(
      '%user' => $form_values['name'],
    ));
  }
}