You are here

function samlauth_form_user_pass_alter in SAML Authentication 4.x

Same name and namespace in other branches
  1. 8.3 samlauth.module \samlauth_form_user_pass_alter()
  2. 7 samlauth.module \samlauth_form_user_pass_alter()

Implements hook_form_FORM_ID_alter() for the password reset form.

File

./samlauth.module, line 86
Allows users to authenticate against an external SAML identity provider.

Code

function samlauth_form_user_pass_alter(&$form, FormStateInterface $form_state) {
  $form['#validate'][] = 'samlauth_check_saml_user';
}