You are here

function oauth2_user_init in OAuth2 Login 8

Same name and namespace in other branches
  1. 7.2 oauth2_user/authenticate.inc \oauth2_user_init()

Implements hook_init().

File

oauth2_user/authenticate.inc, line 10
Misc utility functions.

Code

function oauth2_user_init() {

  // Check whether this is a redirect after login,
  // and if yes call the submit function again.
  if (oauth2_user_is_authenticated() and isset($_SESSION['oauth2_user']['form_state'])) {
    oauth2_user_form_resubmit();
  }
}