public static function miniorange_saml_sp_registration::miniorange_saml_register_popup in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8
1 call to miniorange_saml_sp_registration::miniorange_saml_register_popup()
File
- src/
miniorange_saml_sp_registration.php, line 6
Class
Namespace
Drupal\miniorange_samlCode
public static function miniorange_saml_register_popup($payment_plan) {
$status = \Drupal::config('miniorange_saml.settings')
->get('miniorange_saml_status');
if (isset($_POST['mo_otp_resend']) && $_POST['mo_otp_resend'] == "True") {
Utilities::saml_resend_otp(true);
}
elseif (isset($_POST['mo_otp_check']) && $_POST['mo_otp_check'] == "True") {
$otp_token = trim($_POST['otp']);
Utilities::validate_otp_submit($otp_token, true, $payment_plan);
}
elseif (isset($_POST['mo_saml_check']) && $_POST['mo_saml_check'] == "True") {
$username = $_POST['Email'];
$phone = '';
$password = $_POST['password'];
Utilities::customer_setup_submit($username, $phone, $password, false, true, $payment_plan);
}
elseif ($status == 'VALIDATE_OTP') {
self::miniorange_otp(false, false, false);
}
else {
self::register_data();
}
}