function janrain_capture_token_expired_access in Janrain Registration 7
Same name and namespace in other branches
- 6 janrain_capture.module \janrain_capture_token_expired_access()
- 7.4 janrain_capture.module \janrain_capture_token_expired_access()
- 7.2 janrain_capture.module \janrain_capture_token_expired_access()
- 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 188 - This module implements authentication endpoints for Janrain Capture.
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');
}