You are here

function samlauth_login_form_alter in SAML Authentication 7

Common callback for user_login_block / user_login / user_pass.

3 calls to samlauth_login_form_alter()
samlauth_form_user_login_alter in ./samlauth.module
Implements hook_form_FORM_ID_alter for user_login.
samlauth_form_user_login_block_alter in ./samlauth.module
Implements hook_form_FORM_ID_alter for user_login_block.
samlauth_form_user_pass_alter in ./samlauth.module
Implements hook_form_FORM_ID_alter for user_pass (password reset).

File

./samlauth.module, line 119
Provides SAML authentication capabilities.

Code

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