public static function AuthenticationType::getAuthType in Google Authenticator / 2 Factor Authentication - 2FA 7
6 calls to AuthenticationType::getAuthType()
- getConfiguredAuthenticator in ./
authenticate_user.inc - mo_auth_authenticate_user in ./
authenticate_user.inc - @file This is used to authenticate user during login.
- mo_auth_authenticate_user_submit in ./
authenticate_user.inc - mo_auth_build_form_with_error_message in ./
authenticate_user.inc - mo_auth_customer_setup in ./
mo_auth_customer_setup.inc - Customer setup form().
File
- classes/
AuthenticationType.php, line 206 - Contains Authentication type class.
Class
- AuthenticationType
- @file This class represents authentication type.
Code
public static function getAuthType($code) {
$class = new ReflectionClass('AuthenticationType');
$arr = $class
->getStaticProperties();
foreach ($arr as $authType) {
if (strcasecmp($authType['code'], $code) == 0) {
return $authType;
}
}
return NULL;
}