function ldap_user_form_user_login_form_alter in Lightweight Directory Access Protocol (LDAP) 8.3
Same name and namespace in other branches
- 8.4 ldap_user/ldap_user.module \ldap_user_form_user_login_form_alter()
Implements hook_form_FORM_ID_alter().
Relevant for user_login_form.
File
- ldap_user/
ldap_user.module, line 187 - Module for the LDAP User Entity.
Code
function ldap_user_form_user_login_form_alter(&$form, FormStateInterface $form_state, $form_id) {
array_unshift($form['#validate'], 'ldap_user_grab_password_validate');
}