function samlauth_form_user_login_form_alter in SAML Authentication 8.3
Same name and namespace in other branches
- 8 samlauth.module \samlauth_form_user_login_form_alter()
- 8.2 samlauth.module \samlauth_form_user_login_form_alter()
- 4.x samlauth.module \samlauth_form_user_login_form_alter()
Implements hook_form_FORM_ID_alter() for the login form.
File
- ./
samlauth.module, line 79 - Allows users to authenticate against an external SAML identity provider.
Code
function samlauth_form_user_login_form_alter(&$form, FormStateInterface $form_state) {
$form['#validate'][] = 'samlauth_check_saml_user';
}