function mo_auth_get_configured_methods in Google Authenticator / 2 Factor Authentication - 2FA 7
9 calls to mo_auth_get_configured_methods()
- getConfiguredAuthenticator in ./
authenticate_user.inc - miniorange_saml_validate_otp_submit in ./
configure_otp_over_sms.inc - miniorange_saml_validate_otp_submit in ./
configure_otp_over_sms_and_email.inc - mo_auth_configure_google_authenticator_submit in ./
configure_google_authenticator.inc - mo_auth_configure_kba_submit in ./
configure_kba.inc
File
- ./
mo_auth.module, line 563 - Module file for miniOrange 2FA Module.
Code
function mo_auth_get_configured_methods($uid) {
$user = user_load($uid);
$configured_methods = array();
if (isset($user->configured_auth_methods) && !empty($user->configured_auth_methods)) {
$configured_methods = $user->configured_auth_methods[LANGUAGE_NONE];
}
foreach ($configured_methods as $key => $value_array) {
$configured_methods[$key] = $value_array['value'];
}
return $configured_methods;
}