You are here

function mo_auth_is_user_logged_in in Google Authenticator / 2 Factor Authentication - 2FA 7

1 string reference to 'mo_auth_is_user_logged_in'
mo_auth_menu in ./mo_auth.module
Implements hook_menu().

File

./mo_auth.module, line 432
Module file for miniOrange 2FA Module.

Code

function mo_auth_is_user_logged_in() {
  global $user;
  return user_is_logged_in() && in_array('authenticated user', $user->roles);
}