You are here

function ldap_authentication_form_user_pass_alter in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 ldap_authentication/ldap_authentication.module \ldap_authentication_form_user_pass_alter()
  2. 8.2 ldap_authentication/ldap_authentication.module \ldap_authentication_form_user_pass_alter()
  3. 7.2 ldap_authentication/ldap_authentication.module \ldap_authentication_form_user_pass_alter()
  4. 7 ldap_authentication/ldap_authentication.module \ldap_authentication_form_user_pass_alter()

Implements hook_form_FORM_ID_alter().

File

ldap_authentication/ldap_authentication.module, line 55
This module injects itself into Drupal's Authentication stack.

Code

function ldap_authentication_form_user_pass_alter(&$form, $form_state) {

  // Add the LDAP user password validation before the user module's validation.
  array_unshift($form['#validate'], 'ldap_authentication_user_pass_validate');
}