You are here

function janrain_capture_token_expired_access in Janrain Registration 6

Same name and namespace in other branches
  1. 7.4 janrain_capture.module \janrain_capture_token_expired_access()
  2. 7 janrain_capture.module \janrain_capture_token_expired_access()
  3. 7.2 janrain_capture.module \janrain_capture_token_expired_access()
  4. 7.3 janrain_capture.module \janrain_capture_token_expired_access()

Access callback for janrain_capture_token_expired().

1 string reference to 'janrain_capture_token_expired_access'
janrain_capture_menu in ./janrain_capture.module
Implements hook_menu().

File

./janrain_capture.module, line 73

Code

function janrain_capture_token_expired_access($token) {

  // This path is for authenticated users and is protected from CSRF with a token.
  return user_is_logged_in() && $token === drupal_get_token('janrain_capture_token_expired');
}