You are here

function ldap_user_form_user_pass_reset_alter in Lightweight Directory Access Protocol (LDAP) 8.4

Same name and namespace in other branches
  1. 7.2 ldap_user/ldap_user.module \ldap_user_form_user_pass_reset_alter()

Implements hook_form_FORM_ID_alter().

Relevant for some contrib modules such as prlp, which add a password field into the password reset page.

File

ldap_user/ldap_user.module, line 216

Code

function ldap_user_form_user_pass_reset_alter(&$form, $form_state) {
  array_unshift($form['#validate'], 'ldap_user_grab_password_validate');
}