function authenticate_user::mo_auth_build_form_content in Google Authenticator / 2 Factor Authentication - 2FA 8.2
Same name and namespace in other branches
- 8 src/Form/authenticate_user.php \Drupal\miniorange_2fa\form\authenticate_user::mo_auth_build_form_content()
1 call to authenticate_user::mo_auth_build_form_content()
File
- src/
Form/ authenticate_user.php, line 347 - This is used to authenticate user during login.
Class
- authenticate_user
- @file This is used to authenticate user during login.
Namespace
Drupal\miniorange_2fa\formCode
function mo_auth_build_form_content($form, $base_url, $authType, $challenge_response, $activated_auth_methods, $success_form) {
switch ($authType['code']) {
case AuthenticationType::$EMAIL_VERIFICATION['code']:
return self::mo_auth_build_oobemail_form($form, $base_url, $challenge_response);
case AuthenticationType::$GOOGLE_AUTHENTICATOR['code']:
return self::mo_auth_build_google_authenticator_form($form, $activated_auth_methods, $success_form);
case AuthenticationType::$QR_CODE['code']:
return self::mo_auth_build_qrcode_authentication_form($form, $challenge_response);
case AuthenticationType::$KBA['code']:
return self::mo_auth_build_kba_authentication_form($form, $challenge_response, $success_form);
case AuthenticationType::$SOFT_TOKEN['code']:
return self::mo_auth_build_soft_token_form($form, $success_form);
case AuthenticationType::$PUSH_NOTIFICATIONS['code']:
return self::mo_auth_build_push_notifications_form($form, $base_url);
case AuthenticationType::$SMS['code']:
return self::mo_auth_build_otp_over_sms_form($form, $success_form);
case AuthenticationType::$SMS_AND_EMAIL['code']:
return self::mo_auth_build_otp_over_sms_and_email_form($form, $success_form);
case AuthenticationType::$EMAIL['code']:
return self::mo_auth_build_otp_over_email_form($form, $success_form);
case AuthenticationType::$OTP_OVER_PHONE['code']:
return self::mo_auth_build_otp_over_phone_form($form, $success_form);
case AuthenticationType::$HARDWARE_TOKEN['code']:
return self::mo_auth_build_hardware_token_authenticator_form($form, $success_form);
default:
return $form;
}
}