public static function MoAuthUtilities::mo_auth_get_configured_methods in Google Authenticator / 2 Factor Authentication - 2FA 8
Same name and namespace in other branches
- 8.2 src/MoAuthUtilities.php \Drupal\miniorange_2fa\MoAuthUtilities::mo_auth_get_configured_methods()
10 calls to MoAuthUtilities::mo_auth_get_configured_methods()
- configure_google_authenticator::submitForm in src/
Form/ configure_google_authenticator.php - Form submission handler.
- configure_kba::submitForm in src/
Form/ configure_kba.php - Form submission handler.
- configure_otp_over_email::miniorange_saml_validate_otp_submit in src/
Form/ configure_otp_over_email.php - configure_otp_over_phone::miniorange_saml_validate_otp_submit in src/
Form/ configure_otp_over_phone.php - configure_otp_over_sms::miniorange_saml_validate_otp_submit in src/
Form/ configure_otp_over_sms.php
File
- src/
MoAuthUtilities.php, line 353 - This file is part of miniOrange 2FA module.
Class
Namespace
Drupal\miniorange_2faCode
public static function mo_auth_get_configured_methods($user_id) {
$utilities = new MoAuthUtilities();
$custom_attribute = $utilities
->get_users_custom_attribute($user_id);
if (is_null($custom_attribute) or empty($custom_attribute)) {
return array();
}
$myArray = explode(',', $custom_attribute[0]->configured_auth_methods);
$configured_methods = array_map('trim', $myArray);
return $configured_methods;
}