function miniorange_saml_registration in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
1 call to miniorange_saml_registration()
File
- ./
miniorange_saml_registration.php, line 3
Code
function miniorange_saml_registration($payment_plan) {
$status = variable_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, true, $payment_plan);
}
elseif ($status == 'VALIDATE_OTP') {
miniorange_otp(false, false, false);
}
else {
register_data();
}
}