You are here

function samlauth_changepw in SAML Authentication 7

Menu callback for /saml/changepw.

1 string reference to 'samlauth_changepw'
samlauth_menu in ./samlauth.module
Implements hook_menu().

File

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

Code

function samlauth_changepw() {
  $changepw_service = variable_get('samlauth_changepw_service', FALSE);
  if ($changepw_service === FALSE) {
    drupal_set_message('The site administrator has not configured a password change service. Please change your password according to the normal processes in your organization.', 'error');
    drupal_goto('/');
  }
  drupal_goto(variable_get('samlauth_changepw_service'), array(
    'external' => TRUE,
  ));
}