function ldap_authentication_user_login_authenticate_validate in Lightweight Directory Access Protocol (LDAP) 8.4
Same name and namespace in other branches
- 8.2 ldap_authentication/ldap_authentication.module \ldap_authentication_user_login_authenticate_validate()
- 8.3 ldap_authentication/ldap_authentication.module \ldap_authentication_user_login_authenticate_validate()
- 7.2 ldap_authentication/ldap_authentication.module \ldap_authentication_user_login_authenticate_validate()
- 7 ldap_authentication/ldap_authentication.module \ldap_authentication_user_login_authenticate_validate()
Validate function for user logon forms.
Parameters
array $form: The form.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
1 string reference to 'ldap_authentication_user_login_authenticate_validate'
- _ldap_authentication_login_form_alter in ldap_authentication/
ldap_authentication.module - Helper function for the user login block.
File
- ldap_authentication/
ldap_authentication.module, line 222
Code
function ldap_authentication_user_login_authenticate_validate(array $form, FormStateInterface $form_state) {
if ($form_state
->getValue('pass') && $form_state
->getValue('name')) {
$validator = \Drupal::service('ldap_authentication.login_validator');
$form_state = $validator
->validateLogin($form_state);
}
}