You are here

function shib_auth_submit_redirect in Shibboleth Authentication 7.4

Same name and namespace in other branches
  1. 6.4 shib_auth.module \shib_auth_submit_redirect()

User Data Customization function - Redirect user to the appropriate page.

This function redirects the user to the URL, she wanted to visit before registering or to login URL, if it is set.

2 calls to shib_auth_submit_redirect()
shib_auth_custom_form in ./shib_auth.module
Displays custom form if either customization or consent options are enabled.
shib_login_authmap in ./shib_auth.module
Login a user based on the shib_authmap information.

File

./shib_auth.module, line 578
Drupal Shibboleth authentication module.

Code

function shib_auth_submit_redirect() {
  if (isset($_SESSION['shib_auth_custom_form_url'])) {
    $redirect_url = $_SESSION['shib_auth_custom_form_url'];
    unset($_SESSION['shib_auth_custom_form_url']);
    drupal_goto($redirect_url);
  }
}