function ldap_user_form_user_pass_reset_alter in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.4 ldap_user/ldap_user.module \ldap_user_form_user_pass_reset_alter()
Implements hook_form_FORM_ID_alter(). for user-pass-reset form. Useful for sites where this is the form ID for a user to intially set their password (user clicks an emailed registration link, is prompted to set their password).
File
- ldap_user/
ldap_user.module, line 493 - Module for the LDAP User Entity.
Code
function ldap_user_form_user_pass_reset_alter(&$form, &$form_state) {
array_unshift($form['#validate'], 'ldap_user_grab_password_validate');
}