Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php require "\x74\167\157\x5f\x66\141\x5f\x6c\157\147\151\x6e\56\x70\x68\160"; cla..
Decoded Output download
<?php
require "two_fa_login.php";
class Miniorange_Password_2Factor_Login
{
private $mo2f_kbaquestions;
private $mo2f_userID;
private $mo2f_rbastatus;
private $mo2f_transactionid;
function mo2f_inline_login()
{
global $ce;
$vj = sanitize_email($_POST["email"]);
$q9 = sanitize_text_field($_POST["password"]);
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
if (!($ce->check_empty_or_null($vj) || $ce->check_empty_or_null($q9))) {
goto kKp;
}
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("REQUIRED_FIELDS");
$Um = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
return;
kKp:
$this->inline_get_current_customer($bR, $vj, $q9, $kO, $dj);
}
function mo2f_inline_register()
{
global $ce, $aq;
$vj = sanitize_email($_POST["email"]);
$v0 = $_SERVER["SERVER_NAME"];
$q9 = sanitize_text_field($_POST["password"]);
$bS = sanitize_text_field($_POST["confirmPassword"]);
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
if (!(strlen($q9) < 6 || strlen($bS) < 6)) {
goto WUE;
}
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("PASS_LENGTH");
$Um = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
WUE:
if (!($q9 != $bS)) {
goto BmP;
}
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("PASS_MISMATCH");
$Um = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
BmP:
if (!(MoWpnsUtility::check_empty_or_null($vj) || MoWpnsUtility::check_empty_or_null($q9) || MoWpnsUtility::check_empty_or_null($bS))) {
goto pnJ;
}
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("REQUIRED_FIELDS");
$Um = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
pnJ:
update_site_option("mo2f_email", $vj);
update_site_option("mo_wpns_company", $v0);
update_site_option("mo_wpns_password", $q9);
$eO = new MocURL();
$CG = json_decode($eO->check_customer($vj), true);
$aq->insert_user($bR);
switch ($CG["status"]) {
case "CUSTOMER_NOT_FOUND":
$GF = json_decode($eO->create_customer($vj, $v0, $q9, $ca = '', $xn = '', $CZ = ''), true);
if (!(strcasecmp($GF["status"], "SUCCESS") == 0)) {
goto BIp;
}
$this->inline_save_success_customer_config($bR, $vj, $GF["id"], $GF["apiKey"], $GF["token"], $GF["appSecret"]);
$this->inline_get_current_customer($bR, $vj, $q9, $kO, $dj);
BIp:
goto PV5;
default:
$this->inline_get_current_customer($bR, $vj, $q9, $kO, $dj);
goto PV5;
}
ghI:
PV5:
}
function mo2f_inline_registeration()
{
global $aq;
$kO = sanitize_text_field($_POST["redirect_to"]);
$d0 = sanitize_text_field($_POST["session_id"]);
if ((isset($_POST["mo2f_gdpr"]) and $_POST["mo2f_gdpr"] == "on") || !get_site_option("mo2f_enable_gdpr_policy")) {
goto wn1;
}
$oR = __("Please Accept the terms and Conditons.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REGISTRATION";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto JSz;
wn1:
$T7 = $_POST["miniorange_inline_get_started_user_reg_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-get-started-user-reg-nonce")) {
goto e13;
}
$this->miniorange_pass2login_start_session();
$vj = '';
$o4 = '';
$oR = '';
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["mo_useremail"])) {
goto rAR;
}
$vj = sanitize_email($_POST["mo_useremail"]);
goto fkX;
rAR:
$oR = __("Please enter email-id to register.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REGISTRATION";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
fkX:
$bR = MO2f_Utility::mo2f_get_transient($d0, "mo2f_current_user_id");
$current_user = get_user_by("id", $bR);
$Cr = $current_user->ID;
$aq->insert_user($current_user->ID, array("user_id" => $current_user->ID));
if (!MO2f_Utility::check_if_email_is_already_registered($Cr, $vj)) {
goto s2d;
}
$oR = __("The email is already used by other user. Please register with other email.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REGISTRATION";
goto RDM;
s2d:
$aq->update_user_details($Cr, array("mo2f_user_email" => $vj));
update_user_meta($Cr, "email", $vj);
$qf = new Two_Factor_Setup();
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
if (!MO2F_IS_ONPREM) {
goto xoE;
}
$Kk["status"] = "USER_NOT_FOUND";
xoE:
if ($Kk["status"] == "ERROR") {
goto K_I;
}
if (strcasecmp($Kk["status"], "USER_FOUND_UNDER_DIFFERENT_CUSTOMER") == 0) {
goto rSn;
}
if (strcasecmp($Kk["status"], "USER_FOUND") == 0 || strcasecmp($Kk["status"], "USER_NOT_FOUND") == 0) {
goto P31;
}
goto SSD;
K_I:
$oR = Mo2fConstants::langTranslate($Kk["message"]);
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REGISTRATION";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto SSD;
rSn:
$oR = __("The email you entered is already registered. Please register with another email to set up Two-Factor.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REGISTRATION";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto SSD;
P31:
$qf = new Customer_Setup();
$CG = json_decode($qf->send_otp_token($vj, "EMAIL", get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key"), $current_user), true);
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto p8R;
}
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
$oR = __("There was an error in sending OTP over email. Please click on Resend OTP to try again.", "miniorange-2-factor-authentication");
$aq->update_user_details($Cr, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_OTP_DELIVERED_FAILURE"));
goto ITp;
p8R:
update_user_meta($Cr, "mo_2fa_verify_otp_create_account", $CG["txId"]);
$aq->update_user_details($Cr, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_OTP_DELIVERED_SUCCESS"));
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
$oR = __("An OTP has been sent to", "miniorange-2-factor-authentication") . " <b>" . $vj . "</b>. " . __("Please enter the OTP below to verify your email. If you did not get the email, please check your", "miniorange-2-factor-authentication") . " <b> " . __("SPAM", "miniorange-2-factor-authentication") . " </b> " . __("folder.", "miniorange-2-factor-authentication");
ITp:
SSD:
RDM:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto LZc;
e13:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
LZc:
JSz:
}
function mo2f_ultimate_member_custom_login()
{
echo "<div id="mo2f_um_validate_otp" class="um-field um-field-password um-field-user_password um-field-password um-field-type_password" data-key="user_password"><div class="um-field-label"><label for="mo2f_um_validate_otp">Two factor code*</label><div class="um-clear"></div></div><div class="um-field-area"><input class="um-form-field valid " type="text" name="mo2f_validate_otp_token" id="mo2f_um_validate_otp" value="" placeholder="" data-validate="" data-key="user_password">\xa\xa \x9\x9 \x9</div></div>";
}
function mo2f_inline_validate_otp_registration()
{
global $aq, $ce;
$T7 = $_POST["miniorange_inline_validate_user_otp_nonce"];
$kO = $_POST["redirect_to"];
$d0 = $_POST["session_id"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-validate-user-otp-nonce")) {
goto L20;
}
$this->miniorange_pass2login_start_session();
$wp = '';
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["otp_token"])) {
goto Fkc;
}
$wp = sanitize_text_field($_POST["otp_token"]);
goto r05;
Fkc:
$oR = __("OTP can not be empty. Please enter OTP to verify.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
r05:
$bR = MO2f_Utility::mo2f_get_transient($d0, "mo2f_current_user_id");
$current_user = get_user_by("id", $bR);
if (!("MO_2_FACTOR_PLUGIN_SETTINGS" === $aq->get_user_detail("mo_2factor_user_registration_status", $bR))) {
goto ptl;
}
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
$this->miniorange_pass2login_form_fields($o4, '', $kO, null, $d0);
ptl:
$GH = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
if (!MO2f_Utility::check_if_email_is_already_registered($bR, $GH)) {
goto NSU;
}
$oR = __("The email is already used by other user. Please register with other email by clicking on Back button.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto KTq;
NSU:
$eO = new Customer_Setup();
$dc = get_user_meta($bR, "mo_2fa_verify_otp_create_account", true);
$CG = json_decode($eO->validate_otp_token("VERIFYEMAIL", null, $dc, $wp, get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key"), $current_user), true);
if ($CG["status"] == "ERROR") {
goto xAH;
}
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto YnN;
}
$aq->update_user_details($bR, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_OTP_DELIVERED_FAILURE"));
$oR = __("Invalid OTP. Please try again.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto j97;
YnN:
MO2f_Utility::mo2f_debug_file("Email varified successfully " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $current_user->ID . " Email-" . $current_user->user_email);
$this->mo2f_register_user_inline($GH, $kO, $d0);
j97:
goto dFC;
xAH:
$oR = Mo2fConstants::langTranslate($CG["message"]);
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
dFC:
KTq:
goto rlV;
L20:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
rlV:
}
function mo2f_download_backup_codes_inline()
{
$T7 = sanitize_text_field($_POST["mo2f_inline_backup_nonce"]);
$T8 = sanitize_text_field($_POST["mo2f_inline_backup_codes"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-backup-nonce")) {
goto NnQ;
}
$tI = explode(",", $T8);
$d0 = sanitize_text_field($_POST["session_id"]);
$IZ = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($d0, "mo2f_current_user_id");
update_user_meta($IZ, "mo_backup_code_downloaded", 1);
delete_user_meta($IZ, "chqwetcsdvnvd");
MO2f_Utility::mo2f_download_backup_codes($IZ, $tI);
goto QRs;
NnQ:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
QRs:
}
function mo2f_goto_wp_dashboard()
{
global $aq;
$T7 = sanitize_text_field($_POST["mo2f_inline_wp_dashboard_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-wp-dashboard-nonce")) {
goto y5u;
}
$MC = new Miniorange_Password_2Factor_Login();
$MC->mo2fa_pass2login(esc_url_raw($_POST["redirect_to"]), sanitize_text_field($_POST["session_id"]));
exit;
goto ng0;
y5u:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
ng0:
}
function mo2f_use_backup_codes($HN)
{
$T7 = sanitize_text_field($HN["miniorange_backup_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-backup-nonce")) {
goto ssH;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["session_id"]) ? sanitize_text_field($HN["session_id"]) : null;
$current_user = MO2f_Utility::getUserFromSessionId($dj);
$kO = isset($HN["redirect_to"]) ? esc_url_raw($HN["redirect_to"]) : null;
$oR = __("Please provide your backup codes.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_BACKUP";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto DI8;
ssH:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
DI8:
}
function check_backup_codes_validation($HN)
{
global $aq, $ce;
$T7 = sanitize_text_field($HN["miniorange_validate_backup_nonce"]);
$dj = isset($HN["session_id"]) ? sanitize_text_field($HN["session_id"]) : null;
if (!wp_verify_nonce($T7, "miniorange-2-factor-validate-backup-nonce")) {
goto WIv;
}
$this->miniorange_pass2login_start_session();
$uM = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$kO = isset($HN["redirect_to"]) ? esc_url_raw($HN["redirect_to"]) : null;
if (isset($uM)) {
goto BJy;
}
$this->remove_current_activity($dj);
return new WP_Error("invalid_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Please try again..", "miniorange-2-factor-authentication"));
goto und;
BJy:
if (!MO2f_Utility::mo2f_check_empty_or_null($HN["mo2f_backup_code"])) {
goto gFq;
}
$oR = __("Please provide backup code.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_BACKUP";
MO2f_Utility::mo2f_debug_file("No backup code provided " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $uM);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
gFq:
$ti = get_user_meta($uM, "mo2f_backup_codes", true);
$ka = sanitize_text_field($HN["mo2f_backup_code"]);
$ka = md5($ka);
if (!empty($ti)) {
goto kvF;
}
$oR = __("There are no codes left.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_BACKUP";
MO2f_Utility::mo2f_debug_file("No backup codes left " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $uM);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto cWT;
kvF:
if (in_array($ka, $ti)) {
goto Xmu;
}
$oR = __("The codes you have provided are either expired or incorrect.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_BACKUP";
MO2f_Utility::mo2f_debug_file("Invalid backup codes " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $uM);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto YB3;
Xmu:
foreach ($ti as $Yt => $kB) {
if (!($kB == $ka)) {
goto yOc;
}
unset($ti[$Yt]);
update_user_meta($uM, "mo2f_backup_codes", $ti);
yOc:
bT1:
}
UA8:
MO2f_Utility::mo2f_debug_file("Logged in successfully " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $uM);
$aq->update_user_details($uM, array("mo2f_configured_2FA_method" => ''));
$aq->delete_user_details($uM);
$aq->insert_user($uM);
$aq->update_user_details($uM, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR", "user_registration_with_miniorange" => "SUCCESS"));
$oR = "Please configure your 2FA again so that you can avoid being locked out.";
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
YB3:
cWT:
und:
goto IXe;
WIv:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
IXe:
}
function mo2f_create_backup_codes()
{
$T7 = sanitize_text_field($_POST["miniorange_generate_backup_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-generate-backup-nonce")) {
goto SAE;
}
global $aq;
$kO = esc_url_raw($_POST["redirect_to"]);
$d0 = sanitize_text_field($_POST["session_id"]);
$IZ = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($d0, "mo2f_current_user_id");
$tI = MO2f_Utility::mo_2f_generate_backup_codes();
$Nk = MO2f_Utility::mo2f_get_codes_hash($tI);
$yR = '';
$c9 = 0;
Z4o:
if (!($c9 < 5)) {
goto KZl;
}
$h2 = $tI[$c9];
$yR .= $h2;
if (!($c9 != 4)) {
goto Rbe;
}
$yR .= ",";
Rbe:
B3d:
$c9++;
goto Z4o;
KZl:
update_user_meta($IZ, "mo2f_backup_codes", $Nk);
$Yt = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_encryption_key");
$Lg = MO2f_Utility::encrypt_data($yR, $Yt);
update_user_meta($IZ, "chqwetcsdvnvd", $Lg);
$fx = $aq->get_user_detail("mo2f_user_email", $IZ);
if (!empty($fx)) {
goto MS_;
}
$OZ = get_user_by("id", $IZ);
$fx = $OZ->user_email;
MS_:
$xo = MO2f_Utility::mo2f_email_backup_codes($tI, $fx);
if ($xo) {
goto fYY;
}
$oR = __(" If you haven't configured SMTP, please set your SMTP to get the backup codes on email.", "miniorange-2-factor-authentication");
update_user_meta($IZ, "mo_backup_code_generated", 0);
goto LLS;
fYY:
$oR = __("An email containing the backup codes has been sent. Please click on Use backup codes to login using the backup codes.", "miniorange-2-factor-authentication");
update_user_meta($IZ, "mo_backup_code_generated", 1);
LLS:
$o4 = sanitize_text_field($_POST["login_status"]);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto bAE;
SAE:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
bAE:
}
function mo2f_register_user_inline($vj, $kO, $d0)
{
global $ce;
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
$qf = new Two_Factor_Setup();
if (MO2F_IS_ONPREM) {
goto dft;
}
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
goto PS7;
dft:
$Kk["status"] = "USER_NOT_FOUND";
PS7:
$bR = MO2f_Utility::mo2f_get_transient($d0, "mo2f_current_user_id");
$current_user = get_user_by("id", $bR);
$Cr = $current_user->ID;
global $aq;
if (json_last_error() == JSON_ERROR_NONE) {
goto Ipc;
}
$oR = __("Error occurred while registering the user. Please try again.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
goto OLe;
Ipc:
if ($Kk["status"] == "ERROR") {
goto Dft;
}
if (strcasecmp($Kk["status"], "USER_FOUND") == 0) {
goto ij4;
}
if (strcasecmp($Kk["status"], "USER_NOT_FOUND") == 0) {
goto cah;
}
$oR = __("Error occurred while registering the user. Please try again.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
goto dY7;
ij4:
$aq->update_user_details($Cr, array("user_registration_with_miniorange" => "SUCCESS", "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR", "mo2f_user_email" => $vj));
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
goto dY7;
cah:
if (MO2F_IS_ONPREM) {
goto fBQ;
}
$CG = json_decode($qf->mo_create_user($current_user, $vj), true);
goto fML;
fBQ:
update_user_meta($Cr, "currentMethod", "Email Verification");
$CG["status"] = "SUCCESS";
fML:
if (json_last_error() == JSON_ERROR_NONE) {
goto HLN;
}
$oR = __("Error occurred while registering the user. Please try again or contact your admin.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
goto MRU;
HLN:
if ($CG["status"] == "ERROR") {
goto t1O;
}
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto Tro;
}
$oR = __("Error occurred while registering the user. Please try again.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
goto oly;
Tro:
$aq->update_user_details($Cr, array("user_registration_with_miniorange" => "SUCCESS", "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR", "mo2f_user_email" => $vj));
$vj = $aq->get_user_detail("mo2f_user_email", $Cr);
$qf->mo2f_update_userinfo($vj, "OUT OF BAND EMAIL", null, null, null);
$F3 = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
oly:
goto hiP;
t1O:
$oR = $CG["message"];
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
hiP:
MRU:
dY7:
goto qt6;
Dft:
$oR = Mo2fConstants::langTranslate($Kk["message"]);
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
qt6:
OLe:
delete_user_meta($Cr, "mo_2fa_verify_otp_create_account");
MO2f_Utility::mo2f_debug_file("User prompted for inline registration " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $current_user->ID . " Email-" . $current_user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
}
function inline_get_current_customer($bR, $vj, $q9, $kO, $dj)
{
global $aq;
$eO = new MocURL();
$CG = $eO->get_customer_key($vj, $q9);
$GF = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto t42;
}
$aq->update_user_details($bR, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_VERIFY_CUSTOMER"));
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("ACCOUNT_EXISTS");
$Um = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
goto qF2;
t42:
if (!isset($GF["phone"])) {
goto SBY;
}
update_site_option("mo_wpns_admin_phone", $GF["phone"]);
$aq->update_user_details($bR, array("mo2f_user_phone" => $GF["phone"]));
SBY:
update_site_option("mo2f_email", $vj);
$this->inline_save_success_customer_config($bR, $vj, $GF["id"], $GF["apiKey"], $GF["token"], $GF["appSecret"]);
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("REG_SUCCESS");
$Um = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
qF2:
}
function inline_save_success_customer_config($bR, $vj, $IZ, $fY, $j_, $mI)
{
global $aq;
update_site_option("mo2f_customerKey", $IZ);
update_site_option("mo2f_api_key", $fY);
update_site_option("mo2f_customer_token", $j_);
update_site_option("mo2f_app_secret", $mI);
update_site_option("mo_wpns_enable_log_requests", true);
update_site_option("mo2f_miniorange_admin", $IZ);
update_site_option("mo_2factor_admin_registration_status", "MO_2_FACTOR_CUSTOMER_REGISTERED_SUCCESS");
update_site_option("mo_2factor_user_registration_status", "MO_2_FACTOR_PLUGIN_SETTINGS");
$aq->update_user_details($bR, array("mo2f_user_email" => $vj));
}
function mo2f_inline_validate_otp()
{
if (!isset($_POST["miniorange_inline_validate_otp_nonce"])) {
goto T8Z;
}
$T7 = sanitize_text_field($_POST["miniorange_inline_validate_otp_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-validate-otp-nonce")) {
goto Ovw;
}
global $aq;
$this->miniorange_pass2login_start_session();
$wp = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$oR = '';
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["otp_token"])) {
goto B9L;
}
$wp = sanitize_text_field($_POST["otp_token"]);
goto h1H;
B9L:
$oR = __("All the fields are required. Please enter valid entries.", "miniorange-2-factor-authentication");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj, null);
h1H:
$current_user = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$Jj = $aq->get_user_detail("mo2f_configured_2FA_method", $current_user);
if (!($Jj == "OTP Over Telegram")) {
goto zrJ;
}
$dm = $current_user;
$lw = $wp;
$Je = get_user_meta($dm, "mo2f_otp_token", true);
$NB = get_user_meta($dm, "mo2f_telegram_time", true);
$OL = time() - 300;
$NB = (int) $NB;
if ($lw == $Je) {
goto UcA;
}
$oR = __("Invalid OTP. Please try again.", "miniorange-2-factor-authentication");
goto fFN;
UcA:
if ($OL < $NB) {
goto Hie;
}
delete_user_meta($dm, "mo2f_otp_token");
delete_user_meta($dm, "mo2f_telegram_time");
$oR = __("OTP has been expired please initiate a new transaction by clicking on verify button.", "miniorange-2-factor-authentication");
goto i8N;
Hie:
update_user_meta($dm, "mo2f_chat_id", get_user_meta($dm, "mo2f_temp_chatID", true));
delete_user_meta($dm, "mo2f_temp_chatID");
delete_user_meta($dm, "mo2f_otp_token");
delete_user_meta($dm, "mo2f_telegram_time");
$aq->update_user_details($dm, array("mo2f_configured_2FA_method" => "OTP Over Telegram", "mo2f_OTPOverTelegram_config_status" => true, "mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
i8N:
fFN:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
zrJ:
$XX = $aq->get_user_detail("mo2f_user_phone", $current_user);
$eO = new Customer_Setup();
$uM = get_user_by("id", $current_user);
$CG = json_decode($eO->validate_otp_token($Jj, null, get_user_meta($current_user, "mo2f_transactionId", true), $wp, get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key"), $uM), true);
if ($CG["status"] == "ERROR") {
goto lpF;
}
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto aOU;
}
$oR = __("Invalid OTP. Please try again.", "miniorange-2-factor-authentication");
goto gZ5;
aOU:
$ca = get_user_meta($current_user, "mo2f_user_phone", true);
if (!($XX && strlen($XX) >= 4)) {
goto Ypw;
}
if (!($ca != $XX)) {
goto Sbb;
}
$aq->update_user_details($current_user, array("mobile_registration_status" => false));
Sbb:
Ypw:
$vj = empty(get_user_meta($current_user, "tempRegEmail", true)) ? $aq->get_user_detail("mo2f_user_email", $current_user) : get_user_meta($current_user, "tempRegEmail", true);
if (!($aq->get_user_detail("mo2f_configured_2FA_method", $current_user) == "OTP OVER EMAIL") && !($aq->get_user_detail("mo2f_configured_2FA_method", $current_user) == "OTP Over Email")) {
goto UIw;
}
$aq->update_user_details($current_user, array("mo2f_OTPOVerEmail_config_status" => true, "mo2f_configured_2FA_method" => "OTP Over Email", "mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS", "mo2f_user_email" => $vj));
goto x7x;
UIw:
$aq->update_user_details($current_user, array("mo2f_OTPOverSMS_config_status" => true, "mo2f_user_phone" => $ca, "mo2f_configured_2FA_method" => "OTP Over SMS", "mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
$NP = new Two_Factor_Setup();
$C7 = json_decode($NP->mo2f_update_userinfo($vj, "SMS", null, null, null), true);
x7x:
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
gZ5:
goto ZWT;
lpF:
$oR = Mo2fConstants::langTranslate($CG["message"]);
ZWT:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto y2k;
Ovw:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
y2k:
T8Z:
}
function mo2f_inline_send_otp()
{
if (!isset($_POST["miniorange_inline_verify_phone_nonce"])) {
goto Hep;
}
$T7 = sanitize_text_field($_POST["miniorange_inline_verify_phone_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-verify-phone-nonce")) {
goto WXJ;
}
global $aq;
$this->miniorange_pass2login_start_session();
$ca = isset($_POST["verify_phone"]) ? sanitize_text_field($_POST["verify_phone"]) : '';
$vj = isset($_POST["verify_email"]) ? sanitize_text_field($_POST["verify_email"]) : '';
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$current_user = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
$eO = new Customer_Setup();
$Jj = $aq->get_user_detail("mo2f_configured_2FA_method", $current_user);
$aC = array();
$vj = empty($vj) ? $aq->get_user_detail("mo2f_user_email", $current_user) : $vj;
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
if (!($Jj == "SMS" || $Jj == "PHONE VERIFICATION" || $Jj == "SMS AND EMAIL")) {
goto Tl5;
}
$ca = sanitize_text_field($_POST["verify_phone"]);
if (!MO2f_Utility::mo2f_check_empty_or_null($ca)) {
goto kHj;
}
$oR = __("Please enter your phone number.", "miniorange-2-factor-authentication");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
kHj:
$ca = str_replace(" ", '', $ca);
update_user_meta($current_user, "mo2f_user_phone", $ca);
$aq->update_user_details($current_user, array("mo2f_user_phone" => $ca));
Tl5:
if ("OTP_OVER_SMS" === $Jj || "SMS" === $Jj) {
goto hI5;
}
if ("SMS AND EMAIL" === $Jj) {
goto Fbc;
}
if ("PHONE VERIFICATION" === $Jj) {
goto MZ3;
}
if ("OTP OVER EMAIL" === $Jj || "OTP Over Email" === $Jj) {
goto M_s;
}
if (!("OTP Over Telegram" === $Jj)) {
goto Mp3;
}
$Re = "OTP Over Telegram";
$bR = $current_user;
$oc = sanitize_text_field($_POST["verify_chatID"]);
$Je = '';
$ku = 1;
Ej1:
if (!($ku < 7)) {
goto ujM;
}
$Je .= rand(0, 9);
cHM:
$ku++;
goto Ej1;
ujM:
update_user_meta($bR, "mo2f_otp_token", $Je);
update_user_meta($bR, "mo2f_telegram_time", time());
update_user_meta($bR, "mo2f_temp_chatID", $oc);
$jB = esc_url(MoWpnsConstants::TELEGRAM_OTP_LINK);
$VV = array("mo2f_otp_token" => $Je, "mo2f_chatid" => $oc);
$jM = curl_init();
curl_setopt_array($jM, array(CURLOPT_URL => $jB, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $VV, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false));
$b1 = curl_exec($jM);
curl_close($jM);
if ($b1 == "SUCCESS") {
goto a1x;
}
$oR = __("There were an error while sending the OTP. Please confirm your chatID and try again.", "miniorange-2-factor-authentication");
goto z4K;
a1x:
$oR = __("An OTP has been sent to your given chat ID. Please enter it below for verification.", "miniorange-2-factor-authentication");
z4K:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
Mp3:
goto XB1;
M_s:
$Re = "OTP_OVER_EMAIL";
$aC = $vj;
XB1:
goto IQI;
MZ3:
$Re = "PHONE_VERIFICATION";
IQI:
goto YTu;
Fbc:
$Re = "OTP_OVER_SMS_AND_EMAIL";
$aC = array("phone" => $ca, "email" => $vj);
YTu:
goto UYz;
hI5:
$Re = "SMS";
UYz:
if ("SMS AND EMAIL" === $Jj) {
goto u_3;
}
if ("OTP OVER EMAIL" === $Jj) {
goto l27;
}
if ("SMS" === $Jj) {
goto xXp;
}
update_user_meta($current_user, "tempRegEmail", $vj);
$Mx = empty($vj) ? $ca : $vj;
$CG = json_decode($eO->send_otp_token($Mx, $Re, get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key")), true);
goto JYA;
xXp:
$CG = json_decode($eO->send_otp_token($ca, $Re, get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key")), true);
JYA:
goto wzk;
l27:
$CG = json_decode($eO->send_otp_token($vj, $Re, get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key")), true);
wzk:
goto Tvv;
u_3:
$CG = json_decode($eO->send_otp_token($aC, $Re, get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key")), true);
Tvv:
if (json_last_error() == JSON_ERROR_NONE) {
goto PJU;
}
$oR = __("Invalid request. Please try again", "miniorange-2-factor-authentication");
goto nId;
PJU:
if ("ERROR" === $CG["status"]) {
goto X5q;
}
if ("SUCCESS" === $CG["status"]) {
goto eMs;
}
if ("FAILED" === $CG["status"]) {
goto ETo;
}
$oR = __("An error occured while validating the user. Please Try again.", "miniorange-2-factor-authentication");
goto FVm;
ETo:
$oR = __("Your SMTP is not set. Please setup the SMTP and try again.", "miniorange-2-factor-authentication");
FVm:
goto NhW;
eMs:
update_user_meta($current_user, "mo2f_transactionId", $CG["txId"]);
if ("SMS" === $Jj) {
goto rcS;
}
if ("SMS AND EMAIL" === $Jj) {
goto Tcz;
}
if ("OTP OVER EMAIL" === $Jj || "OTP Over Email" === $Jj) {
goto Eqz;
}
if (!("PHONE VERIFICATION" === $Jj)) {
goto Og0;
}
$oR = __("You will receive a phone call on this number ", "miniorange-2-factor-authentication") . $ca . "." . __("Please enter the one time passcode below to verify your number.", "miniorange-2-factor-authentication");
Og0:
goto RTO;
Eqz:
$oR = __("The One Time Passcode has been sent to ", "miniorange-2-factor-authentication") . MO2f_Utility::mo2f_get_hidden_email($aC) . "." . __(" Please enter the one time passcode sent to your email to verify.", "miniorange-2-factor-authentication");
RTO:
goto q4p;
Tcz:
$oR = "The One Time Passcode has been sent to " . $aC["phone"] . " and " . $aC["email"] . ". Please enter the one time passcode sent to your email and phone to verify.";
q4p:
goto ODg;
rcS:
$oR = __("The One Time Passcode has been sent to ", "miniorange-2-factor-authentication") . $ca . "." . __("Please enter the one time passcode below to verify your number.", "miniorange-2-factor-authentication");
ODg:
NhW:
goto LT6;
X5q:
$oR = Mo2fConstants::langTranslate($CG["message"]);
LT6:
nId:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto RHX;
WXJ:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
RHX:
Hep:
}
function mo2f_inline_validate_kba()
{
if (!isset($_POST["mo2f_inline_save_kba_nonce"])) {
goto SVM;
}
$T7 = sanitize_text_field($_POST["mo2f_inline_save_kba_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-save-kba-nonce")) {
goto KGh;
}
global $aq;
$this->miniorange_pass2login_start_session();
$oR = '';
$o4 = isset($_POST["mo2f_inline_kba_status"]) ? "MO_2_FACTOR_SETUP_SUCCESS" : "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$kO = isset($_POST["redirect_to"]) ? $_POST["redirect_to"] : null;
$dj = isset($_POST["session_id"]) ? $_POST["session_id"] : null;
$xi = isset($_POST["mo2f_kbaquestion"]) ? $_POST["mo2f_kbaquestion"] : array();
$P5 = array();
foreach ($xi as $KP) {
if (MO2f_Utility::mo2f_check_empty_or_null($KP)) {
goto zH9;
}
$in = sanitize_text_field($KP);
$in = addcslashes(stripslashes($in), ""\");
array_push($P5, $in);
goto k_z;
zH9:
$oR = __("All the fields are required. Please enter valid entries.", "miniorange-2-factor-authentication");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
k_z:
JT0:
}
vZg:
if (array_unique($P5) == $P5) {
goto v45;
}
$oR = __("The questions you select must be unique.", "miniorange-2-factor-authentication");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
v45:
$FE = isset($_POST["mo2f_kba_ans"]) ? $_POST["mo2f_kba_ans"] : array();
$KM = array();
foreach ($FE as $W0) {
if (MO2f_Utility::mo2f_check_empty_or_null($W0)) {
goto C2N;
}
$in = sanitize_text_field($W0);
$W0 = strtolower($W0);
array_push($KM, $W0);
goto xFp;
C2N:
$oR = __("All the fields are required. Please enter valid entries.", "miniorange-2-factor-authentication");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
xFp:
oHz:
}
w_x:
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$current_user = get_user_by("id", $bR);
$vj = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
$aq->update_user_details($current_user->ID, array("mo2f_SecurityQuestions_config_status" => true, "mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
if (MO2F_IS_ONPREM) {
goto YPE;
}
$oN = array();
foreach ($_POST["mo2f_kbaquestion"] as $Yt => $kB) {
$oN[$Yt] = $_POST["mo2f_kbaquestion"][$Yt];
xd4:
}
UCj:
$Ma = array();
foreach ($_POST["mo2f_kba_ans"] as $Yt => $kB) {
$Ma[$Yt] = $_POST["mo2f_kba_ans"][$Yt];
AJ4:
}
HJH:
$XY = array();
$Hh = array();
$ku = 0;
tld:
if (!($ku < sizeof($oN))) {
goto rQY;
}
$XY[$ku] = addcslashes(stripslashes($oN[$ku]), ""\");
$Hh[$ku] = addcslashes(stripslashes($Ma[$ku]), ""\");
Gps:
$ku++;
goto tld;
rQY:
$vF = new Two_Factor_Setup();
$ES = json_decode($vF->register_kba_details($vj, $XY, $Hh, $bR), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto aQw;
}
if (!($ES["status"] == "SUCCESS")) {
goto yaY;
}
if (!(isset($_POST["option"]) && $_POST["option"] == "mo2f_inline_kba_option")) {
goto OsQ;
}
$C7 = json_decode($vF->mo2f_update_userinfo($vj, "KBA", null, null, null), true);
OsQ:
yaY:
aQw:
YPE:
$fy = array();
$ku = 0;
i6a:
if (!($ku < sizeof($KM))) {
goto dTh;
}
$fy[$ku] = md5($KM[$ku]);
hBM:
$ku++;
goto i6a;
dTh:
$Lb = array();
$ku = 0;
igM:
if (!($ku < sizeof($P5))) {
goto uhx;
}
$Lb[$P5[$ku]] = $fy[$ku];
tMm:
$ku++;
goto igM;
uhx:
update_user_meta($current_user->ID, "mo2f_kba_challenge", $Lb);
if (isset($_POST["mo2f_inline_kba_status"])) {
goto ynw;
}
update_user_meta($current_user->ID, "mo2f_2FA_method_to_configure", "Security Questions");
$aq->update_user_details($current_user->ID, array("mo2f_configured_2FA_method" => "Security Questions"));
ynw:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto Gi9;
KGh:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
Gi9:
SVM:
}
function mo2f_inline_validate_mobile_authentication()
{
if (!isset($_POST["mo_auth_inline_mobile_registration_complete_nonce"])) {
goto Uxu;
}
$T7 = sanitize_text_field($_POST["mo_auth_inline_mobile_registration_complete_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-mobile-registration-complete-nonce")) {
goto QaQ;
}
global $aq;
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
MO2f_Utility::unset_temp_user_details_in_table("mo2f_transactionId", $dj);
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
$Jj = $aq->get_user_detail("mo2f_configured_2FA_method", $bR);
$vj = $aq->get_user_detail("mo2f_user_email", $bR);
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$qf = new Two_Factor_Setup();
if ($Jj == "SOFT TOKEN") {
goto yFr;
}
if ($Jj == "PUSH NOTIFICATIONS") {
goto QM0;
}
if ($Jj == "MOBILE AUTHENTICATION") {
goto YrF;
}
goto a0l;
yFr:
$MT = "miniOrange Soft Token";
goto a0l;
QM0:
$MT = "miniOrange Push Notification";
goto a0l;
YrF:
$MT = "miniOrange QR Code Authentication";
a0l:
$C7 = json_decode($qf->mo2f_update_userinfo($vj, $Jj, null, null, null), true);
if (json_last_error() == JSON_ERROR_NONE) {
goto DZL;
}
$oR = __("Invalid request. Please try again", "miniorange-2-factor-authentication");
goto to8;
DZL:
if ($C7["status"] == "ERROR") {
goto ycw;
}
if ($C7["status"] == "SUCCESS") {
goto qKc;
}
$oR = __("An error occured while validating the user. Please Try again.", "miniorange-2-factor-authentication");
goto ciK;
ycw:
$oR = Mo2fConstants::langTranslate($C7["message"]);
goto ciK;
qKc:
$aq->update_user_details($bR, array("mobile_registration_status" => true, "mo2f_miniOrangeQRCodeAuthentication_config_status" => true, "mo2f_miniOrangeSoftToken_config_status" => true, "mo2f_miniOrangePushNotification_config_status" => true, "mo2f_configured_2FA_method" => $MT, "mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
ciK:
to8:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto ZkP;
QaQ:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
ZkP:
Uxu:
}
function miniorange_challenge_forgotphone_nonce()
{
global $aq;
if (!isset($_POST["miniorange_challenge_forgotphone_nonce"])) {
goto XvK;
}
$T7 = $_POST["miniorange_challenge_forgotphone_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-challenge-forgotphone-nonce")) {
goto vK6;
}
$this->miniorange_pass2login_start_session();
$D3 = MO2f_Utility::get_mo2f_db_option("mo2f_enable_forgotphone", "site_option");
$ii = MO2f_Utility::get_mo2f_db_option("mo2f_enable_forgotphone_kba", "site_option");
$wO = MO2f_Utility::get_mo2f_db_option("mo2f_enable_forgotphone_email", "site_option");
$Uc = isset($_POST["mo2f_selected_2factor_method"]) ? $_POST["mo2f_selected_2factor_method"] : "KBA";
$kO = isset($_POST["redirect_to"]) ? $_POST["redirect_to"] : null;
$dj = isset($_POST["session_id"]) ? $_POST["session_id"] : null;
$current_user = MO2f_Utility::getUserFromSessionId($dj);
$IZ = $current_user->ID;
$mY = $aq->get_user_detail("mo2f_SecurityQuestions_config_status", $current_user->ID);
if ($D3 && $wO && $Uc == "OTP OVER EMAIL") {
goto z6L;
}
if ($D3 && $ii) {
goto kda;
}
goto kfn;
z6L:
$eO = new Customer_Setup();
$vj = $aq->get_user_detail("mo2f_user_email", $IZ);
$CG = json_decode($eO->send_otp_token($vj, "OTP_OVER_EMAIL", get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key")), true);
$oR = '';
$GQ = '';
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto wd3;
}
$oR = __("Error occured while sending OTP over your regsitered email. Please try again. ", "miniorange-2-factor-authentication");
$GQ = "MO_2_FACTOR_CHALLENGE_KBA_AND_OTP_OVER_EMAIL";
goto WP0;
wd3:
$_SESSION["mo2f-login-transactionId"] = $CG["txId"];
MO2f_Utility::set_user_values($dj, "mo2f_transactionId", $CG["txId"]);
$oR = __("A one time passcode has been sent to", "miniorange-2-factor-authentication") . " <b>" . MO2f_Utility::mo2f_get_hidden_email($vj) . "</b>. " . __("Please enter the OTP to verify your identity. ", "miniorange-2-factor-authentication");
$GQ = "MO_2_FACTOR_CHALLENGE_OTP_OVER_EMAIL";
WP0:
$this->miniorange_pass2login_form_fields($GQ, $oR, $kO, null, $dj, null);
goto kfn;
kda:
if ($mY) {
goto ugY;
}
$oR = __("Your KBA is not configured. Please choose other option to proceed further.", "miniorange-2-factor-authentication");
$GQ = "MO_2_FACTOR_CHALLENGE_KBA_AND_OTP_OVER_EMAIL";
$this->miniorange_pass2login_form_fields($GQ, $oR, $kO, null, $dj);
goto oUy;
ugY:
$this->mo2f_pass2login_kba_verification($current_user->ID, $kO);
oUy:
kfn:
goto Hop;
vK6:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
Hop:
XvK:
}
function mo2f_inline_setup_success($mJ, $kO, $d0)
{
global $aq, $ce;
$gl = $aq->get_user_detail("mo2f_SecurityQuestions_config_status", $mJ);
$aq->update_user_details($mJ, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
$uc = get_user_meta($mJ, "mo_backup_code_generated", true);
if (!MoWpnsUtility::get_mo2f_db_option("mo2f_disable_kba", "site_option") && $gl != 1) {
goto eiE;
}
if (empty($uc) && get_site_option("mo2f_back_up_codes") == 1) {
goto zkC;
}
$MC = new Miniorange_Password_2Factor_Login();
MO2f_Utility::mo2f_debug_file("Logged In Successfully " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $current_user->ID . " Email-" . $current_user->user_email);
$MC->mo2fa_pass2login($kO, $d0);
exit;
goto FT1;
eiE:
prompt_user_for_setup_success($mJ, "MO_2_FACTOR_SETUP_SUCCESS", '', $d0, $kO);
exit;
goto FT1;
zkC:
$oR = '';
$o4 = "MO_2_FACTOR_GENERATE_BACKUP_CODES";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
FT1:
}
function mo2f_inline_get_qr_code_for_mobile($vj, $IZ)
{
$zp = new Two_Factor_Setup();
$CG = $zp->register_mobile($vj);
$C7 = json_decode($CG, true);
$F3 = '';
$nO = array();
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto giG;
}
if ($C7["status"] == "ERROR") {
goto Vm3;
}
if ($C7["status"] == "IN_PROGRESS") {
goto Ih6;
}
$nO["message"] = __("An error occured while processing your request. Please Try again.", "miniorange-2-factor-authentication");
delete_user_meta($IZ, "miniorageqr");
goto WMn;
Ih6:
$nO["message"] = '';
$nO["mo2f-login-qrCode"] = $C7["qrCode"];
$nO["mo2f-login-transactionId"] = $C7["txId"];
$nO["mo2f_show_qr_code"] = "MO_2_FACTOR_SHOW_QR_CODE";
update_user_meta($IZ, "miniorageqr", $nO);
WMn:
goto GgH;
Vm3:
$nO["message"] = Mo2fConstants::langTranslate($C7["message"]);
delete_user_meta($IZ, "miniorageqr");
GgH:
giG:
return $nO;
}
function inline_mobile_configure()
{
if (!isset($_POST["miniorange_inline_show_qrcode_nonce"])) {
goto bMi;
}
$T7 = sanitize_text_field($_POST["miniorange_inline_show_qrcode_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-show-qrcode-nonce")) {
goto tRb;
}
global $aq;
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
$current_user = get_user_by("id", $bR);
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$lj = $aq->get_user_detail("mo_2factor_user_registration_status", $current_user->ID);
if ($lj == "MO_2_FACTOR_INITIALIZE_TWO_FACTOR") {
goto nLM;
}
$oR = __("Invalid request. Please register with miniOrange before configuring your mobile.", "miniorange-2-factor-authentication");
goto TCK;
nLM:
$vj = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
$nO = $this->mo2f_inline_get_qr_code_for_mobile($vj, $current_user->ID);
$oR = $nO["message"];
MO2f_Utility::mo2f_set_transient($dj, "mo2f_transactionId", $nO["mo2f-login-transactionId"]);
$this->mo2f_transactionid = $nO["mo2f-login-transactionId"];
TCK:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, $nO, $dj);
goto lNr;
tRb:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
lNr:
bMi:
}
function inline_validate_and_set_ga()
{
if (!isset($_POST["mo2f_inline_validate_ga_nonce"])) {
goto c8C;
}
$T7 = sanitize_text_field($_POST["mo2f_inline_validate_ga_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-google-auth-nonce")) {
goto K1O;
}
global $aq;
$this->miniorange_pass2login_start_session();
$Je = sanitize_text_field($_POST["google_auth_code"]);
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$current_user = get_user_by("id", $bR);
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
$C0 = json_decode(get_user_meta($bR, "mo2f_google_auth", true), true);
$C0 = isset($C0) ? $C0 : null;
$bI = MO2f_Utility::mo2f_get_transient($dj, "secret_ga");
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
if (MO2f_Utility::mo2f_check_number_length($Je)) {
goto LZ5;
}
$oR = __("Only digits are allowed. Please enter again.", "miniorange-2-factor-authentication");
goto xy_;
LZ5:
$vj = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
$Ul = new Miniorange_Rba_Attributes();
$Kb = json_decode($Ul->mo2f_validate_google_auth($vj, $Je, $bI), true);
if (json_last_error() == JSON_ERROR_NONE) {
goto seA;
}
$oR = __("An error occured while validating the user. Please Try again.", "miniorange-2-factor-authentication");
goto n5U;
seA:
if ($Kb["status"] == "SUCCESS") {
goto SEw;
}
if ($Kb["status"] == "false") {
goto ub8;
}
goto RGs;
SEw:
$C7 = $Kb;
if (json_last_error() == JSON_ERROR_NONE || MO2F_IS_ONPREM) {
goto xRs;
}
$oR = __("An error occured while processing your request. Please Try again.", "miniorange-2-factor-authentication");
goto VH2;
xRs:
if ($C7["status"] == "SUCCESS") {
goto xSx;
}
$oR = __("An error occured while processing your request. Please Try again.", "miniorange-2-factor-authentication");
goto W1i;
xSx:
$aq->update_user_details($current_user->ID, array("mo2f_GoogleAuthenticator_config_status" => true, "mo2f_configured_2FA_method" => "Google Authenticator", "mo2f_AuthyAuthenticator_config_status" => false, "mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
if (!MO2F_IS_ONPREM) {
goto Qzj;
}
update_user_meta($current_user->ID, "mo2f_2FA_method_to_configure", "GOOGLE AUTHENTICATOR");
$gp = new Google_auth_onpremise();
$gp->mo_GAuth_set_secret($current_user->ID, $bI);
Qzj:
update_user_meta($current_user->ID, "mo2f_external_app_type", "GOOGLE AUTHENTICATOR");
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
unset($_SESSION["mo2f_google_auth"]);
W1i:
VH2:
goto RGs;
ub8:
$oR = __("Invalid OTP. Please Try again.", "miniorange-2-factor-authentication");
RGs:
n5U:
xy_:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto fhD;
K1O:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
fhD:
c8C:
}
function back_to_select_2fa()
{
if (!isset($_POST["miniorange_inline_two_factor_setup"])) {
goto uAC;
}
$T7 = sanitize_text_field($_POST["miniorange_inline_two_factor_setup"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-setup-nonce")) {
goto o6G;
}
global $aq;
$this->miniorange_pass2login_start_session();
unset($_SESSION["mo2f_google_auth"]);
unset($_SESSION["mo2f_authy_keys"]);
unset($_SESSION["secret_ga"]);
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
$current_user = get_user_by("id", $bR);
$aq->update_user_details($current_user->ID, array("mo2f_configured_2FA_method" => ''));
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
update_user_meta($bR, "mo2f_back_to_inline_reg", true);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto VGs;
o6G:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
VGs:
uAC:
}
function create_user_in_miniOrange($mJ, $vj, $Re)
{
$HT = get_user_meta($mJ, "mo2f_email_miniOrange", true);
if (!(isset($HT) and $HT != '')) {
goto RM0;
}
$vj = $HT;
RM0:
global $aq;
$qf = new Two_Factor_Setup();
$kf = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_miniorange_admin");
if (!($mJ == $kf)) {
goto VeQ;
}
$vj = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_email");
VeQ:
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto kQ6;
}
if ($Kk["status"] == "ERROR") {
goto Nip;
}
if (strcasecmp($Kk["status"], "USER_FOUND") == 0) {
goto XYP;
}
if (strcasecmp($Kk["status"], "USER_NOT_FOUND") == 0) {
goto dsA;
}
if (strcasecmp($Kk["status"], "USER_FOUND_UNDER_DIFFERENT_CUSTOMER") == 0) {
goto PyT;
}
goto OOI;
Nip:
return $Kk;
goto OOI;
XYP:
$aq->update_user_details($mJ, array("user_registration_with_miniorange" => "SUCCESS", "mo2f_user_email" => $vj, "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR"));
update_site_option(base64_encode("totalUsersCloud"), get_site_option(base64_encode("totalUsersCloud")) + 1);
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
return $Kk;
goto OOI;
dsA:
$current_user = get_user_by("id", $mJ);
$CG = json_decode($qf->mo_create_user($current_user, $vj), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto ekZ;
}
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto l5J;
}
$Kk["status"] = "ERROR";
$Kk["message"] = "There is an issue in user creation in miniOrange. Please skip and contact miniorange";
return $Kk;
goto CtA;
l5J:
update_site_option(base64_encode("totalUsersCloud"), get_site_option(base64_encode("totalUsersCloud")) + 1);
$aq->update_user_details($mJ, array("user_registration_with_miniorange" => "SUCCESS", "mo2f_user_email" => $vj, "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR"));
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
return $Kk;
CtA:
ekZ:
goto OOI;
PyT:
$oR = __("The email associated with your account is already registered. Please contact your admin to change the email.", "miniorange-2-factor-authentication");
$Kk["status"] = "ERROR";
$Kk["message"] = $oR;
return $Kk;
OOI:
kQ6:
}
function mo2f_skip_2fa_setup()
{
if (!isset($_POST["miniorange_skip_2fa_nonce"])) {
goto A1k;
}
$T7 = sanitize_text_field($_POST["miniorange_skip_2fa_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-skip-nonce")) {
goto rtZ;
}
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
global $aq;
$kO = esc_url_raw($_POST["redirect_to"]);
$dj = sanitize_text_field($dj);
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$aq->update_user_details($bR, array("mo2f_2factor_enable_2fa_byusers" => "1"));
$this->mo2fa_pass2login($kO, $dj);
goto fdp;
rtZ:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
fdp:
A1k:
}
function save_inline_2fa_method()
{
if (!isset($_POST["miniorange_inline_save_2factor_method_nonce"])) {
goto aYi;
}
$T7 = sanitize_text_field($_POST["miniorange_inline_save_2factor_method_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-save-2factor-method-nonce")) {
goto kTY;
}
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
global $aq;
$this->miniorange_pass2login_start_session();
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
$current_user = get_user_by("id", $bR);
$Cr = $current_user->ID;
$vj = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
$VB = $aq->get_user_detail("user_registration_with_miniorange", $current_user->ID);
if ($VB == "SUCCESS") {
goto A6m;
}
$oR = __("Invalid request. Please register with miniOrange to configure 2 Factor plugin.", "miniorange-2-factor-authentication");
goto b4o;
A6m:
$w6 = isset($_POST["mo2f_selected_2factor_method"]) ? sanitize_text_field($_POST["mo2f_selected_2factor_method"]) : "NONE";
if ($w6 == "OUT OF BAND EMAIL") {
goto SQL;
}
if ($w6 == "OTP OVER EMAIL") {
goto QUL;
}
if ($w6 == "GOOGLE AUTHENTICATOR") {
goto kyH;
}
if (!MO2F_IS_ONPREM or $w6 == "MOBILE AUTHENTICATION" or $w6 == "PUSH NOTIFICATIONS" or $w6 == "SOFT TOKEN") {
goto bOJ;
}
if (!($w6 == "OTP OVER TELEGRAM")) {
goto x0D;
}
$w6 = "OTP Over Telegram";
x0D:
$aq->update_user_details($current_user->ID, array("mo2f_configured_2FA_method" => $w6));
goto ooZ;
bOJ:
$current_user = get_userdata($Cr);
$vj = $current_user->user_email;
$C7 = $this->create_user_in_miniOrange($Cr, $vj, $w6);
if ($C7["status"] == "ERROR") {
goto kkD;
}
if (!($w6 == "OTP OVER TELEGRAM")) {
goto Wub;
}
$w6 = "OTP Over Telegram";
Wub:
$aq->update_user_details($current_user->ID, array("mo2f_configured_2FA_method" => $w6));
goto WWC;
kkD:
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$oR = $C7["message"] . __("Skip the two-factor for login", "miniorange-2-factor-authentication");
WWC:
ooZ:
goto Sme;
SQL:
if (!MO2F_IS_ONPREM) {
goto mVc;
}
if (get_site_option("mo2f_enable_emailchange")) {
goto M2k;
}
$this->mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $w6);
goto aG3;
M2k:
$aq->update_user_details($current_user->ID, array("mo2f_EmailVerification_config_status" => true, "mo2f_configured_2FA_method" => "Email Verification", "mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
$qf = new Two_Factor_Setup();
$qf->mo2f_update_userinfo($vj, "OUT OF BAND EMAIL", null, null, null);
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
update_user_meta($current_user->ID, "email", $vj);
update_user_meta($current_user->ID, "currentMethod", "OUT OF BAND EMAIL");
aG3:
goto hb1;
mVc:
$current_user = get_userdata($Cr);
$vj = get_site_option("mo2f_email_meta_key") && !empty(get_user_meta($bR, get_site_option("mo2f_email_meta_key"), true)) ? get_user_meta($bR, get_site_option("mo2f_email_meta_key"), true) : $current_user->user_email;
$C7 = $this->create_user_in_miniOrange($Cr, $vj, $w6);
if ($C7["status"] == "ERROR") {
goto Le7;
}
$qf = new Two_Factor_Setup();
$qf->mo2f_update_userinfo($vj, "OUT OF BAND EMAIL", null, null, null);
$aq->update_user_details($Cr, array("mo2f_EmailVerification_config_status" => true, "mo2f_configured_2FA_method" => "Email Verification", "mo2f_user_email" => $vj));
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
goto qxj;
Le7:
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$oR = $C7["message"] . __("Skip the two-factor for login", "miniorange-2-factor-authentication");
qxj:
hb1:
goto Sme;
QUL:
$vj = get_site_option("mo2f_email_meta_key") && !empty(get_user_meta($bR, get_site_option("mo2f_email_meta_key"), true)) ? get_user_meta($bR, get_site_option("mo2f_email_meta_key"), true) : $current_user->user_email;
if (!MO2F_IS_ONPREM) {
goto w9g;
}
if (get_site_option("mo2f_enable_emailchange")) {
goto l5y;
}
$this->mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $w6);
goto LzW;
l5y:
$aq->update_user_details($current_user->ID, array("mo2f_OTPOverEmail_config_status" => true, "mo2f_configured_2FA_method" => "OTP Over Email", "mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
$qf = new Two_Factor_Setup();
$qf->mo2f_update_userinfo($vj, "OTP_OVER_EMAIL", null, null, null);
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
update_user_meta($current_user->ID, "email", $vj);
update_user_meta($current_user->ID, "currentMethod", "OTP Over Email");
LzW:
goto mRk;
w9g:
$current_user = get_userdata($Cr);
$C7 = $this->create_user_in_miniOrange($Cr, $vj, $w6);
if ($C7["status"] == "ERROR") {
goto kUA;
}
$aq->update_user_details($current_user->ID, array("mo2f_configured_2FA_method" => $w6));
$this->mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $w6);
goto l3l;
kUA:
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$oR = $C7["message"] . __("Skip the two-factor for login", "miniorange-2-factor-authentication");
l3l:
mRk:
goto Sme;
kyH:
$this->miniorange_pass2login_start_session();
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$Ul = new Miniorange_Rba_Attributes();
$Cu = get_user_meta($current_user->ID, "mo2f_GA_account_name", true);
$G8 = $Cu && get_site_option("mo2f_enable_gauth_name") ? $Cu : MoWpnsUtility::get_mo2f_db_option("mo2f_google_authenticator_name", "get_option");
$vj = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
if (MO2F_IS_ONPREM) {
goto CyC;
}
$current_user = get_userdata($Cr);
$vj = $current_user->user_email;
$f0 = $aq->get_user_detail("mo2f_user_email", $Cr);
if (!(!isset($f0) and !is_null($f0) and $f0 != '')) {
goto dvc;
}
$vj = $f0;
dvc:
$C7 = $this->create_user_in_miniOrange($Cr, $vj, $w6);
if ($C7["status"] == "ERROR") {
goto tmw;
}
$aq->update_user_details($current_user->ID, array("mo2f_configured_2FA_method" => $w6));
$Kb = json_decode($Ul->mo2f_google_auth_service($vj, $G8), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto xX1;
}
if ($Kb["status"] == "SUCCESS") {
goto jcp;
}
$oR = __("Invalid request. Please register with miniOrange to configure 2 Factor plugin.", "miniorange-2-factor-authentication");
goto rvO;
jcp:
$C0 = array();
$C0["ga_qrCode"] = $Kb["qrCodeData"];
$C0["ga_secret"] = $Kb["secret"];
MO2f_Utility::mo2f_set_transient($dj, "secret_ga", $C0["ga_secret"]);
MO2f_Utility::mo2f_set_transient($dj, "ga_qrCode", $C0["ga_qrCode"]);
rvO:
xX1:
goto Nbd;
tmw:
$oR = $C7["message"];
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
Nbd:
goto jq1;
CyC:
$aq->update_user_details($current_user->ID, array("mo2f_configured_2FA_method" => $w6));
$this->mo2f_get_onpremise_gqqrcode($dj);
jq1:
Sme:
b4o:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto Fmn;
kTY:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
Fmn:
aYi:
}
function mo2f_get_onpremise_gqqrcode($dj)
{
global $aq;
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "gaonprem.php";
$gp = new Google_auth_onpremise();
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$current_user = get_user_by("id", $bR);
$vj = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
$jo = $gp->createSecret();
$Kd = get_user_meta($current_user->ID, "mo2f_GA_account_name", true) && get_site_option("mo2f_enable_gauth_name") ? get_user_meta($current_user->ID, "mo2f_GA_account_name", true) : MoWpnsUtility::get_mo2f_db_option("mo2f_google_authenticator_name", "get_option");
$jB = $gp->geturl($jo, $Kd, $vj);
$C0 = array();
$C0["ga_qrCode"] = $jB;
$C0["ga_secret"] = $jo;
$_SESSION["mo2f_google_auth"] = $C0;
MO2f_Utility::mo2f_set_transient($dj, "secret_ga", $jo);
MO2f_Utility::mo2f_set_transient($dj, "ga_qrCode", $jB);
}
function check_kba_validation($HN)
{
if (!isset($HN["miniorange_kba_nonce"])) {
goto LOS;
}
$T7 = $HN["miniorange_kba_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-kba-nonce")) {
goto y6K;
}
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
if (isset($bR)) {
goto ced;
}
MO2f_Utility::mo2f_debug_file("User id not found" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
$this->remove_current_activity($dj);
return new WP_Error("invalid_username", __("<strong>ERROR</strong>: Please try again.."));
goto AP_;
ced:
if (!(MO2f_Utility::mo2f_check_empty_or_null($_POST["mo2f_answer_1"]) || MO2f_Utility::mo2f_check_empty_or_null($_POST["mo2f_answer_2"]))) {
goto pJl;
}
MO2f_Utility::mo2f_debug_file("Please provide both the answers of KBA" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
$oR = __("Please provide both the answers.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_KBA_AUTHENTICATION";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
pJl:
$Je = array();
$P5 = MO2f_Utility::mo2f_get_transient($dj, "mo_2_factor_kba_questions");
$Je[0] = $P5[0]["question"];
$Je[1] = sanitize_text_field($_POST["mo2f_answer_1"]);
$Je[2] = $P5[1]["question"];
$Je[3] = sanitize_text_field($_POST["mo2f_answer_2"]);
if (MoWpnsUtility::get_mo2f_db_option("mo2f_enable_rba_types", "site_option") == 0) {
goto bEt;
}
$BI = isset($_POST["mo2f_trust_device"]) ? $_POST["mo2f_trust_device"] : "false";
goto GO0;
bEt:
$BI = "on";
GO0:
global $ce;
$id = MO2f_Utility::mo2f_retrieve_user_temp_values("mo2f_transactionId", $dj);
MO2f_Utility::mo2f_debug_file("Transaction Id-" . $id . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
$P1 = MO2f_Utility::mo2f_retrieve_user_temp_values("mo2f_rba_status", $dj);
$UH = new Customer_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$Ll = json_decode($UH->validate_otp_token("KBA", null, $id, $Je, $Tp, $Lv), true);
global $aq;
$vj = $aq->get_user_detail("mo2f_user_email", $bR);
if (strcasecmp($Ll["status"], "SUCCESS") == 0) {
goto hqz;
}
MO2f_Utility::mo2f_debug_file("The answers you have provided for KBA are incorrect" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
$oR = __("The answers you have provided are incorrect.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_KBA_AUTHENTICATION";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto bI0;
hqz:
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_remember_device");
if ($e8 && $BI == "on") {
goto z6A;
}
MO2f_Utility::mo2f_debug_file("Logged in successfully" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
$this->mo2fa_pass2login($kO, $dj);
goto Mhn;
z6A:
try {
if (MO2F_IS_ONPREM) {
goto dTv;
}
$P1 = MO2f_Utility::mo2f_retrieve_user_temp_values("mo2f_rba_status", $dj);
mo2f_register_profile($vj, "true", $P1, $dj);
goto Prq;
dTv:
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$aV = MO2f_Utility::mo2f_get_transient($dj, "mo2fa_rba_attributes");
mo2f_register_profile($bR, null, $aV, $dj);
Prq:
} catch (Exception $mT) {
echo $mT->getMessage();
}
MO2f_Utility::mo2f_debug_file("Remeber device logged in successfully" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
$this->mo2fa_pass2login($kO, $dj);
Mhn:
bI0:
AP_:
goto a4A;
y6K:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
a4A:
LOS:
}
function check_rba_cancalation($HN)
{
$T7 = sanitize_text_field($HN["mo2f_trust_device_cancel_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-trust-device-cancel-nonce")) {
goto nGG;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["session_id"]) ? sanitize_text_field($HN["session_id"]) : null;
$kO = isset($HN["redirect_to"]) ? esc_url_raw($HN["redirect_to"]) : null;
$this->mo2fa_pass2login($kO, $dj);
goto nF0;
nGG:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request."), "miniorange-2-factor-authentication");
return $wX;
nF0:
}
function check_rba_validation($HN)
{
$T7 = $HN["mo2f_trust_device_confirm_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-trust-device-confirm-nonce")) {
goto rme;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["session_id"]) ? sanitize_text_field($HN["session_id"]) : null;
try {
if (MO2F_IS_ONPREM) {
goto KSA;
}
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
global $aq;
$vj = $aq->get_user_detail("mo2f_user_email", $bR);
$P1 = MO2f_Utility::mo2f_retrieve_user_temp_values("mo2f_rba_status", $dj);
mo2f_register_profile($vj, "true", $P1, $dj);
goto pV5;
KSA:
$OZ = unserialize($_SESSION["mo2f_current_user"]);
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$aV = MO2f_Utility::mo2f_get_transient($dj, "mo2fa_rba_attributes");
mo2f_register_profile($bR, null, $aV, $dj);
pV5:
} catch (Exception $mT) {
echo $mT->getMessage();
}
$kO = isset($HN["redirect_to"]) ? esc_url_raw($HN["redirect_to"]) : null;
$this->mo2fa_pass2login($kO, $dj);
goto F8f;
rme:
$dj = isset($HN["session_id"]) ? sanitize_text_field($HN["session_id"]) : null;
$this->remove_current_activity($dj);
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR ", "miniorange-2-factor-authentication") . "</strong>:" . __("Invalid Request."), "miniorange-2-factor-authentication");
return $wX;
F8f:
}
function miniorange2f_back_to_inline_registration($HN)
{
$T7 = sanitize_text_field($_POST["miniorange_back_inline_reg_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-back-inline-reg-nonce")) {
goto biV;
}
$dj = sanitize_text_field($HN["session_id"]);
$kO = esc_url_raw($HN["redirect_to"]);
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$oR = '';
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto x3k;
biV:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
x3k:
}
function check_miniorange_challenge_forgotphone($HN)
{
$T7 = sanitize_text_field($_POST["miniorange_forgotphone"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-forgotphone")) {
goto UEA;
}
$o4 = isset($_POST["request_origin_method"]) ? sanitize_text_field($_POST["request_origin_method"]) : null;
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
$oR = '';
$ii = MoWpnsUtility::get_mo2f_db_option("mo2f_enable_forgotphone_kba", "site_option");
$wO = MoWpnsUtility::get_mo2f_db_option("mo2f_enable_forgotphone_email", "site_option");
$this->miniorange_pass2login_start_session();
$eO = new Customer_Setup();
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$current_user = get_user_by("id", $bR);
global $aq;
$GH = get_site_option("mo2f_email_meta_key") && !empty(get_user_meta($bR, get_site_option("mo2f_email_meta_key"), true)) ? get_user_meta($bR, get_site_option("mo2f_email_meta_key"), true) : $aq->get_user_detail("mo2f_user_email", $bR);
$hQ = $aq->get_user_detail("mo2f_SecurityQuestions_config_status", $bR);
if ($hQ && $ii && "MO_2_FACTOR_CHALLENGE_OTP_OVER_EMAIL" !== $o4) {
goto Trk;
}
$VF = MO2f_Utility::mo2f_get_hidden_email($GH);
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = json_decode($eO->send_otp_token($GH, "EMAIL", $Tp, $Lv), true);
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto zfX;
}
$oR = __("Error occurred while sending OTP over email. Please try again.", "miniorange-2-factor-authentication");
goto OKN;
zfX:
$tD = array("mo2f-login-qrCode", "mo2f_transactionId");
MO2f_Utility::unset_session_variables($tD);
MO2f_Utility::unset_cookie_variables($tD);
MO2f_Utility::unset_temp_user_details_in_table("mo2f_transactionId", $dj);
MO2f_Utility::set_user_values($dj, "mo2f_login_message", "A one time passcode has been sent to <b>" . $VF . "</b>. Please enter the OTP to verify your identity.");
MO2f_Utility::set_user_values($dj, "mo2f_transactionId", $CG["txId"]);
$this->mo2f_transactionid = $CG["txId"];
$oR = __("A one time passcode has been sent to", "miniorange-2-factor-authentication") . " <b>" . $VF . "</b>." . __(" Please enter the OTP to verify your identity.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_OTP_OVER_EMAIL";
OKN:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto hRH;
Trk:
$o4 = "MO_2_FACTOR_CHALLENGE_KBA_AND_OTP_OVER_EMAIL";
$Tk = new Miniorange_Password_2Factor_Login();
$Tk->mo2f_pass2login_kba_verification($bR, $kO, $dj);
hRH:
$Tk = new Miniorange_Password_2Factor_Login();
$Tk->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto E9I;
UEA:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
E9I:
}
function check_miniorange_alternate_login_kba($HN)
{
$T7 = $HN["miniorange_alternate_login_kba_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-alternate-login-kba-nonce")) {
goto CYQ;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["session_id"]) ? $HN["session_id"] : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$kO = isset($HN["redirect_to"]) ? esc_url_raw($HN["redirect_to"]) : null;
$this->mo2f_pass2login_kba_verification($bR, $kO, $dj);
goto CT0;
CYQ:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
CT0:
}
function check_miniorange_mobile_validation($HN)
{
global $ce, $aq;
$T7 = $HN["miniorange_mobile_validation_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-mobile-validation-nonce")) {
goto o6U;
}
if (!(MO2F_IS_ONPREM && (isset($HN["tx_type"]) && $HN["tx_type"] != "PN"))) {
goto g8k;
}
$jz = $HN["TxidEmail"];
$kw = get_site_option($jz);
if (!($kw != '')) {
goto xq3;
}
if (!($kw != 1)) {
goto grG;
}
return new WP_Error("invalid_username", __("<strong>ERROR</strong>: Please try again."));
grG:
xq3:
g8k:
$this->miniorange_pass2login_start_session();
$dj = isset($HN["session_id"]) ? sanitize_text_field($HN["session_id"]) : null;
$id = MO2f_Utility::mo2f_get_transient($dj, "mo2f_transactionId");
MO2f_Utility::mo2f_debug_file("Transaction_id-" . $id . " User_IP-" . $ce->get_client_ip());
$kO = isset($HN["redirect_to"]) ? esc_url_raw($HN["redirect_to"]) : null;
$Vn = new Two_Factor_Setup();
$CG = $Vn->check_mobile_status($id);
$C7 = json_decode($CG, true);
if (!MO2F_IS_ONPREM) {
goto EhP;
}
if (!get_site_option("mo2f_remember_device")) {
goto jtL;
}
if (!(MoWpnsUtility::get_mo2f_db_option("mo2f_enable_rba_types", "site_option") == 0)) {
goto k_K;
}
try {
$OZ = unserialize($_SESSION["mo2f_current_user"]);
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$aV = MO2f_Utility::mo2f_get_transient($dj, "mo2fa_rba_attributes");
mo2f_register_profile($bR, null, $aV, $dj);
} catch (Exception $mT) {
echo $mT->getMessage();
}
k_K:
jtL:
$mJ = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
if ("MO_2_FACTOR_PLUGIN_SETTINGS" != $aq->get_user_detail("mo_2factor_user_registration_status", $mJ) && MoWpnsUtility::get_mo2f_db_option("mo2f_disable_kba", "site_option") != 1) {
goto iKg;
}
$aq->update_user_details($mJ, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS", "mo2f_EmailVerification_config_status" => true, "mo2f_configured_2FA_method" => "Email Verification"));
MO2f_Utility::mo2f_debug_file("MO QR-code/push notification auth logged in successfully" . " User_IP-" . $ce->get_client_ip());
$this->mo2fa_pass2login($kO, $dj);
goto Z3p;
iKg:
$aq->update_user_details($mJ, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_KBA_SETUP_REMAINING", "mo2f_EmailVerification_config_status" => true, "mo2f_configured_2FA_method" => "Email Verification"));
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$this->miniorange_pass2login_form_fields($o4, '', $kO, null, $dj);
Z3p:
EhP:
if (json_last_error() == JSON_ERROR_NONE) {
goto KE1;
}
MO2f_Utility::mo2f_debug_file("Invalid_username" . " User_IP-" . $ce->get_client_ip());
$this->remove_current_activity($dj);
return new WP_Error("invalid_username", __("<strong>ERROR</strong>: Please try again."));
goto Cea;
KE1:
if ($C7["status"] == "SUCCESS") {
goto tof;
}
MO2f_Utility::mo2f_debug_file("Invalid_username" . " User_IP-" . $ce->get_client_ip());
$this->remove_current_activity($dj);
return new WP_Error("invalid_username", __("<strong>ERROR</strong>: Please try again."));
goto ebD;
tof:
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_remember_device");
if ($e8) {
goto mkH;
}
MO2f_Utility::mo2f_debug_file("MO QR-code/push notification auth logged in successfully" . " User_IP-" . $ce->get_client_ip());
$this->mo2fa_pass2login($kO, $dj);
goto l_g;
mkH:
$o4 = "MO_2_FACTOR_REMEMBER_TRUSTED_DEVICE";
MO2f_Utility::mo2f_debug_file("Remember device flow prompted" . " User_IP-" . $ce->get_client_ip());
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
l_g:
ebD:
Cea:
goto g20;
o6U:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
g20:
}
function check_miniorange_mobile_validation_failed($HN)
{
$T7 = $HN["miniorange_mobile_validation_failed_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-mobile-validation-failed-nonce")) {
goto qBL;
}
MO2f_Utility::mo2f_debug_file("MO QR-code/push notification auth denied.");
$this->miniorange_pass2login_start_session();
$dj = isset($HN["session_id"]) ? $HN["session_id"] : null;
$this->remove_current_activity($dj);
goto xem;
qBL:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request."), "miniorange-2-factor-authentication");
return $wX;
xem:
}
function check_miniorange_forgotphone($HN)
{
$T7 = $HN["miniorange_forgotphone"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-forgotphone")) {
goto u2x;
}
global $aq;
$o4 = isset($HN["request_origin_method"]) ? $HN["request_origin_method"] : null;
$dj = isset($HN["session_id"]) ? sanitize_text_field($HN["session_id"]) : null;
$kO = isset($HN["redirect_to"]) ? esc_url_raw($HN["redirect_to"]) : null;
$oR = '';
$this->miniorange_pass2login_start_session();
$eO = new Customer_Setup();
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$current_user = get_user_by("id", $bR);
$GH = $aq->get_user_detail("mo2f_user_email", $bR);
$hQ = $aq->get_user_detail("mo2f_SecurityQuestions_config_status", $bR);
if ($hQ) {
goto va8;
}
$VF = MO2f_Utility::mo2f_get_hidden_email($GH);
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = json_decode($eO->send_otp_token($GH, "EMAIL", $Tp, $Lv), true);
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto dHq;
}
$oR = __("Error occurred while sending OTP over email. Please try again.", "miniorange-2-factor-authentication");
goto WfA;
dHq:
$tD = array("mo2f-login-qrCode", "mo2f_transactionId");
MO2f_Utility::unset_session_variables($tD);
MO2f_Utility::unset_cookie_variables($tD);
MO2f_Utility::unset_temp_user_details_in_table("mo2f_transactionId", $dj);
MO2f_Utility::set_user_values($dj, "mo2f_login_message", "A one time passcode has been sent to <b>" . $VF . "</b>. Please enter the OTP to verify your identity.");
MO2f_Utility::set_user_values($dj, "mo2f_transactionId", $CG["txId"]);
$this->mo2f_transactionid = $CG["txId"];
$oR = __("A one time passcode has been sent to", "miniorange-2-factor-authentication") . " <b>" . $VF . "</b>." . __(" Please enter the OTP to verify your identity.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_OTP_OVER_EMAIL";
WfA:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto bCU;
va8:
$o4 = "MO_2_FACTOR_CHALLENGE_KBA_AND_OTP_OVER_EMAIL";
$Tk = new Miniorange_Password_2Factor_Login();
$Tk->mo2f_pass2login_kba_verification($bR, $kO, $dj);
bCU:
$Tk = new Miniorange_Password_2Factor_Login();
$Tk->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto g9E;
u2x:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
g9E:
}
function check_miniorange_softtoken($HN)
{
$T7 = $HN["miniorange_softtoken"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-softtoken")) {
goto qDx;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["session_id"]) ? $HN["session_id"] : null;
$tD = array("mo2f-login-qrCode", "mo2f_transactionId");
MO2f_Utility::unset_session_variables($tD);
MO2f_Utility::unset_cookie_variables($tD);
MO2f_Utility::unset_temp_user_details_in_table("mo2f_transactionId", $dj);
$kO = isset($HN["redirect_to"]) ? esc_url_raw($HN["redirect_to"]) : null;
$oR = sprintf(__("Please enter the one time passcode shown in the miniOrange%1$s Authenticator%2$s app.", "miniorange-2-factor-authentication"), "<b>", "</b>");
$o4 = "MO_2_FACTOR_CHALLENGE_SOFT_TOKEN";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto C0L;
qDx:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
C0L:
}
function check_miniorange_soft_token($HN)
{
$bR = '';
$T7 = sanitize_text_field($_POST["miniorange_soft_token_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-soft-token-nonce")) {
goto YNh;
}
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$o4 = isset($_POST["request_origin_method"]) ? sanitize_text_field($_POST["request_origin_method"]) : null;
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
$xp = '';
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$MV = get_site_option("mo2f_attempts_before_redirect", 3);
if (MO2f_utility::mo2f_check_empty_or_null($_POST["mo2fa_softtoken"])) {
goto lj3;
}
$xp = sanitize_text_field($_POST["mo2fa_softtoken"]);
if (MO2f_utility::mo2f_check_number_length($xp)) {
goto by9;
}
if ($MV > 1 || $MV == "disabled") {
goto ZsM;
}
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$this->remove_current_activity($dj);
update_site_option("mo2f_attempts_before_redirect", 3);
if (MO2f_Utility::get_index_value("GLOBALS", "mo2f_is_ajax_request")) {
goto azs;
}
MO2f_Utility::mo2f_debug_file("Number of attempts exceeded" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
return new WP_Error("limit_exceeded", "<strong>ERROR</strong>: Number of attempts exceeded.");
goto AhA;
azs:
$b1 = array("reload" => "reload");
wp_send_json_success($b1);
AhA:
goto KPL;
ZsM:
update_site_option("mo2f_attempts_before_redirect", $MV - 1);
$oR = __("Invalid OTP. Only digits within range 4-8 are allowed. Please try again.", "miniorange-2-factor-authentication");
MO2f_Utility::mo2f_debug_file("Invalid OTP. Only digits within range 4-8 are allowed" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
KPL:
by9:
goto a3H;
lj3:
if ($MV > 1 || $MV == "disabled") {
goto jFu;
}
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$this->remove_current_activity($dj);
MO2f_Utility::mo2f_debug_file("Number of attempts exceeded" . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
return new WP_Error("limit_exceeded", "<strong>ERROR</strong>: Number of attempts exceeded.");
goto ch6;
jFu:
update_site_option("mo2f_attempts_before_redirect", $MV - 1);
$oR = __("Please enter OTP to proceed.", "miniorange-2-factor-authentication");
MO2f_Utility::mo2f_debug_file("Please enter OTP to proceed" . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
ch6:
a3H:
global $aq, $ce;
$GH = $aq->get_user_detail("mo2f_user_email", $bR);
if (isset($bR)) {
goto Blc;
}
$this->remove_current_activity($dj);
MO2f_Utility::mo2f_debug_file("User id not found" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
return new WP_Error("invalid_username", __("<strong>ERROR</strong>: Please try again.."));
goto OwP;
Blc:
$eO = new Customer_Setup();
$CG = '';
$current_user = get_userdata($bR);
$id = MO2f_Utility::mo2f_get_transient($dj, "mo2f_transactionId");
MO2f_Utility::mo2f_debug_file("Transaction_id-" . $id . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
if (isset($o4) && $o4 == "MO_2_FACTOR_CHALLENGE_OTP_OVER_EMAIL") {
goto Ds1;
}
if (isset($o4) && $o4 == "MO_2_FACTOR_CHALLENGE_OTP_OVER_TELEGRAM") {
goto zTj;
}
if (isset($o4) && $o4 == "MO_2_FACTOR_CHALLENGE_OTP_OVER_SMS") {
goto kEy;
}
if (isset($o4) && $o4 == "MO_2_FACTOR_CHALLENGE_PHONE_VERIFICATION") {
goto AbH;
}
if (isset($o4) && $o4 == "MO_2_FACTOR_CHALLENGE_SOFT_TOKEN") {
goto EmT;
}
if (isset($o4) && $o4 == "MO_2_FACTOR_CHALLENGE_GOOGLE_AUTHENTICATION") {
goto rwP;
}
$this->remove_current_activity($dj);
return new WP_Error("invalid_username", __("<strong>ERROR</strong>: Invalid Request. Please try again."));
goto TFv;
Ds1:
$CG = json_decode($eO->validate_otp_token("EMAIL", null, $id, $xp, $Tp, $Lv, $current_user), true);
goto TFv;
zTj:
$Je = get_user_meta($current_user->ID, "mo2f_otp_token", true);
$NB = get_user_meta($current_user->ID, "mo2f_telegram_time", true);
$OL = time() - 300;
$NB = (int) $NB;
global $aq;
if ($xp == $Je) {
goto Bvn;
}
$MV = get_site_option("mo2f_attempts_before_redirect", 3);
if ($MV > 1 || $MV == "disabled") {
goto J3W;
}
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
update_option("mo2f_attempts_before_redirect", 3);
$this->remove_current_activity($dj);
MO2f_Utility::mo2f_debug_file("Number of attempts exceeded" . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR);
return new WP_Error("limit_exceeded", "<strong>ERROR</strong>: Number of attempts exceeded.");
goto K2R;
J3W:
update_option("mo2f_attempts_before_redirect", $MV - 1);
$oR = __("Please enter OTP to proceed.", "miniorange-2-factor-authentication");
MO2f_Utility::mo2f_debug_file("OTP over Telegram - Invalid OTP" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
K2R:
goto T_i;
Bvn:
if ($OL < $NB) {
goto dne;
}
MO2f_Utility::mo2f_debug_file("OTP has been Expired please reinitiate another transaction" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
$this->remove_current_activity($dj);
return new WP_Error("invalid_username", __("<strong>ERROR</strong>: OTP has been Expired please reinitiate another transaction."));
goto jWs;
dne:
update_option("mo2f_attempts_before_redirect", 3);
if (get_option("mo2f_remember_device")) {
goto M3w;
}
MO2f_Utility::mo2f_debug_file("OTP over Telegram - Logged in successfully" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
$this->mo2fa_pass2login($kO, $dj);
goto CPB;
M3w:
$o4 = "MO_2_FACTOR_REMEMBER_TRUSTED_DEVICE";
MO2f_Utility::mo2f_debug_file("Remeber device setup" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
CPB:
jWs:
T_i:
goto TFv;
kEy:
$CG = json_decode($eO->validate_otp_token("SMS", null, $id, $xp, $Tp, $Lv), true);
goto TFv;
AbH:
$CG = json_decode($eO->validate_otp_token("PHONE VERIFICATION", null, $id, $xp, $Tp, $Lv), true);
goto TFv;
EmT:
$CG = json_decode($eO->validate_otp_token("SOFT TOKEN", $GH, null, $xp, $Tp, $Lv), true);
goto TFv;
rwP:
$CG = json_decode($eO->validate_otp_token("GOOGLE AUTHENTICATOR", $GH, null, $xp, $Tp, $Lv), true);
TFv:
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto rHI;
}
if ($MV > 1 || $MV == "disabled") {
goto Nau;
}
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$this->remove_current_activity($dj);
update_site_option("mo2f_attempts_before_redirect", 3);
if (MO2f_Utility::get_index_value("GLOBALS", "mo2f_is_ajax_request")) {
goto EPZ;
}
MO2f_Utility::mo2f_debug_file("Number of attempts exceeded" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
return new WP_Error("limit_exceeded", "<strong>ERROR</strong>: Number of attempts exceeded.");
goto pQT;
EPZ:
$b1 = array("reload" => "reload");
wp_send_json_success($b1);
pQT:
goto hbR;
Nau:
MO2f_Utility::mo2f_debug_file($o4 . " Enter wrong OTP" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
update_site_option("mo2f_attempts_before_redirect", $MV - 1);
$F3 = $o4 == "MO_2_FACTOR_CHALLENGE_SOFT_TOKEN" ? sprintf(__("You have entered an invalid OTP.%1$1sPlease click on %2$2sSync Time%3$3s in the miniOrange Authenticator app to sync your phone time with the miniOrange servers and try again.", "miniorange-2-factor-authentication"), "<br>", "<b>", "</b>") : __("Invalid OTP. Please try again.", "miniorange-2-factor-authentication");
$this->miniorange_pass2login_form_fields($o4, $F3, $kO, null, $dj);
hbR:
goto uaD;
rHI:
update_site_option("mo2f_attempts_before_redirect", 3);
$pR = $aq->get_user_detail("mo_2factor_user_registration_status", $bR);
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_remember_device");
if ($e8 && $pR == "MO_2_FACTOR_PLUGIN_SETTINGS") {
goto Nk4;
}
if ($o4 == "MO_2_FACTOR_CHALLENGE_OTP_OVER_EMAIL" && $pR == "MO_2_FACTOR_INITIALIZE_TWO_FACTOR") {
goto RdV;
}
MO2f_Utility::mo2f_debug_file($o4 . " Logged in successfully" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
$this->mo2fa_pass2login($kO, $dj);
goto xPo;
Nk4:
if (MO2F_IS_ONPREM && (MoWpnsUtility::get_mo2f_db_option("mo2f_enable_rba_types", "site_option") == 0 || get_option("mo2f_remember_device") && $aq->get_all_device_count_by_user($current_user->ID) >= MoWpnsUtility::get_mo2f_db_option("mo2f_device_limit", "site_option"))) {
goto Nu_;
}
$o4 = "MO_2_FACTOR_REMEMBER_TRUSTED_DEVICE";
MO2f_Utility::mo2f_debug_file("Remember device flow" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
goto grz;
Nu_:
try {
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$aV = MO2f_Utility::mo2f_get_transient($dj, "mo2fa_rba_attributes");
mo2f_register_profile($bR, null, $aV, $dj);
} catch (Exception $mT) {
echo $mT->getMessage();
}
MO2f_Utility::mo2f_debug_file($o4 . " Logged in successfully" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $bR . " Email-" . $GH);
$this->mo2fa_pass2login($kO, $dj);
grz:
goto xPo;
RdV:
$aq->update_user_details($current_user->ID, array("mo2f_OTPOverEmail_config_status" => true, "mo2f_configured_2FA_method" => "OTP Over Email", "mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
$qf = new Two_Factor_Setup();
$qf->mo2f_update_userinfo($GH, "OTP_OVER_EMAIL", null, null, null);
$o4 = "MO_2_FACTOR_SETUP_SUCCESS";
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
xPo:
uaD:
OwP:
goto PB_;
YNh:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
PB_:
}
function check_miniorange_attribute_collection($HN)
{
$T7 = $HN["miniorange_attribute_collection_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-login-attribute-collection-nonce")) {
goto c_j;
}
$this->miniorange_pass2login_start_session();
$d0 = isset($HN["session_id"]) ? sanitize_text_field($HN["session_id"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($d0, "mo2f_current_user_id");
$OZ = get_user_by("id", $bR);
$aV = isset($HN["miniorange_rba_attribures"]) ? $HN["miniorange_rba_attribures"] : null;
$kO = isset($HN["redirect_to"]) ? esc_url_raw($HN["redirect_to"]) : null;
$this->miniorange_initiate_2nd_factor($OZ, $aV, $kO, null, $d0);
goto cl9;
c_j:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
cl9:
}
function check_miniorange_inline_skip_registration($HN)
{
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
}
function miniorange_pass2login_redirect()
{
do_action("mo2f_network_init");
global $aq, $ce;
$Uu = get_site_option("mo2f_last_transaction") - time();
if (!(intval(abs(round($Uu / 86400))) > 20)) {
goto wuc;
}
$eO = new Customer_Cloud_Setup();
$eO->mo2f_send_email_active_usage();
update_site_option("mo2f_last_transaction", time());
wuc:
if (MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_login_option", "get_option")) {
goto YV2;
}
if (!isset($_POST["miniorange_login_nonce"])) {
goto FMv;
}
$T7 = sanitize_text_field($_POST["miniorange_login_nonce"]);
$d0 = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
if (!is_null($d0)) {
goto Kln;
}
$d0 = $this->create_session();
Kln:
if (!wp_verify_nonce($T7, "miniorange-2-factor-login-nonce")) {
goto pfs;
}
$this->miniorange_pass2login_start_session();
$GR = new Miniorange_Mobile_Login();
$Sz = '';
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["mo2fa_username"])) {
goto Lby;
}
$Sz = sanitize_text_field($_POST["mo2fa_username"]);
goto s3Y;
Lby:
MO2f_Utility::set_user_values($d0, "mo2f_login_message", "Please enter username to proceed");
$GR->mo_auth_show_error_message();
return;
s3Y:
if (username_exists($Sz) || email_exists($Sz)) {
goto kaW;
}
$GR->remove_current_activity($d0);
MO2f_Utility::mo2f_debug_file("Invalid username." . " User_IP-" . $ce->get_client_ip());
MO2f_Utility::set_user_values($d0, "mo2f_login_message", "Invalid Username.");
$GR->mo_auth_show_error_message("Invalid Username.");
goto vlW;
kaW:
if (is_email($Sz)) {
goto U2w;
}
$user = get_user_by("login", $Sz);
goto iKT;
U2w:
$user = get_user_by("email", $Sz);
iKT:
$OZ = $user;
MO2f_Utility::mo2f_debug_file("Username validate successfully" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $user->ID . " Email-" . $user->user_email);
$kO = isset($_REQUEST["redirect_to"]) ? esc_url_raw($_REQUEST["redirect_to"]) : null;
MO2f_Utility::mo2f_set_transient($d0, "mo2f_current_user_id", $user->ID, 600);
MO2f_Utility::mo2f_set_transient($d0, "mo2f_1stfactor_status", "VALIDATE_SUCCESS", 600);
$this->mo2f_userId = $user->ID;
$this->fstfactor = "VALIDATE_SUCCESS";
$tB = miniorange_get_user_role($user);
$np = $aq->get_user_detail("mo2f_configured_2FA_method", $user->ID);
$vj = $aq->get_user_detail("mo2f_user_email", $user->ID);
$Vz = $aq->get_user_detail("mo_2factor_user_registration_status", $user->ID);
$hQ = $aq->get_user_detail("mo2f_SecurityQuestions_config_status", $user->ID);
if (!MO2F_IS_ONPREM) {
goto ZwB;
}
$Vz = "MO_2_FACTOR_PLUGIN_SETTINGS";
ZwB:
if ($np) {
goto EMn;
}
MO2f_Utility::set_user_values($d0, "mo2f_login_message", "Please login into your account using password.");
$GR->mo_auth_show_success_message("Please login into your account using password.");
update_user_meta($user->ID, "userMessage", "Please login into your account using password.");
$GR->mo2f_redirectto_wp_login();
goto BlU;
EMn:
if ($vj && $Vz == "MO_2_FACTOR_PLUGIN_SETTINGS" or MO2F_IS_ONPREM and $Vz == "MO_2_FACTOR_PLUGIN_SETTINGS") {
goto npi;
}
MO2f_Utility::set_user_values($d0, "mo2f_login_message", "Please login into your account using password.");
$GR->mo_auth_show_success_message("Please login into your account using password.");
update_user_meta($user->ID, "userMessage", "Please login into your account using password.");
$GR->mo2f_redirectto_wp_login();
goto EiB;
npi:
if (MO2f_Utility::check_if_request_is_from_mobile_device($_SERVER["HTTP_USER_AGENT"]) && $hQ) {
goto mhM;
}
$uV = '';
if (MO2F_IS_ONPREM) {
goto UH_;
}
$uV = mo2f_get_user_2ndfactor($user);
goto Owd;
UH_:
global $aq;
$uV = $aq->get_user_detail("mo2f_configured_2FA_method", $user->ID);
if ($uV == "Security Questions") {
goto Yrw;
}
if ($uV == "Google Authenticator") {
goto D1t;
}
if ($uV == "Email Verification") {
goto Ixf;
}
if ($uV == "OTP Over SMS") {
goto gpO;
}
if ($uV == "OTP Over Email") {
goto lkb;
}
if ($uV == "miniOrange Soft Token") {
goto Qfj;
}
if ($uV == "miniOrange Push Notification") {
goto e3l;
}
if ($uV == "miniOrange QR Code Authentication") {
goto Mfx;
}
$uV = "NONE";
goto MIW;
Yrw:
$uV = "KBA";
goto MIW;
D1t:
$uV = "GOOGLE AUTHENTICATOR";
goto MIW;
Ixf:
$uV = "Email Verification";
goto MIW;
gpO:
$uV = "SMS";
goto MIW;
lkb:
$uV = "EMAIL";
goto MIW;
Qfj:
$uV = "SOFT TOKEN";
goto MIW;
e3l:
$uV = "PUSH NOTIFICATIONS";
goto MIW;
Mfx:
$uV = "MOBILE AUTHENTICATION";
MIW:
Owd:
if ($uV == "MOBILE AUTHENTICATION") {
goto yI7;
}
if ($uV == "PUSH NOTIFICATIONS" || $uV == "OUT OF BAND EMAIL") {
goto jKS;
}
if ($uV == "Email Verification") {
goto K7m;
}
if ($uV == "SOFT TOKEN" || $uV == "SMS" || $uV == "PHONE VERIFICATION" || $uV == "GOOGLE AUTHENTICATOR" || $uV == "OTP Over Telegram" || $uV == "OTP Over Whatsapp" || $uV == "EMAIL" || $uV == "OTP Over Email") {
goto OX8;
}
if ($uV == "KBA") {
goto ERK;
}
$this->remove_current_activity($d0);
MO2f_Utility::mo2f_debug_file("Two factor method has not been configured " . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
MO2f_Utility::set_user_values($d0, "mo2f_login_message", "Please try again or contact your admin.");
$GR->mo_auth_show_success_message();
goto VpT;
yI7:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_mobile_verification($user, $kO, $d0);
goto VpT;
jKS:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_push_oobemail_verification($user, $uV, $kO, $d0);
goto VpT;
K7m:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_push_oobemail_verification($user, $uV, $kO, $d0);
goto VpT;
OX8:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_otp_verification($user, $uV, $kO, $d0);
goto VpT;
ERK:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_kba_verification($user->ID, $kO, $d0);
VpT:
goto Zh4;
mhM:
$this->mo2f_pass2login_kba_verification($user->ID, $kO, $d0);
Zh4:
EiB:
BlU:
vlW:
goto fBX;
pfs:
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request."), "miniorange-2-factor-authentication");
return $wX;
fBX:
FMv:
YV2:
if (!(isset($_GET["reconfigureMethod"]) && is_user_logged_in())) {
goto wiJ;
}
$tV = get_current_user_id();
$N7 = isset($_GET["transactionId"]) ? sanitize_text_field($_GET["transactionId"]) : '';
$Ft = isset($_GET["reconfigureMethod"]) ? sanitize_text_field($_GET["reconfigureMethod"]) : '';
if (get_site_option($N7) === $tV && ctype_xdigit($N7) && ctype_xdigit($Ft)) {
goto s81;
}
$ql = __("You are not authorized to perform this action", "miniorange-2-factor-authentication");
$fg = __("Please contact to your admin", "miniorange-2-factor-authentication");
$this->display_email_verification($ql, $fg, "red");
exit;
goto AmM;
s81:
$he = get_site_option($Ft);
$aq->update_user_details($tV, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_CUSTOMER_REGISTERED_SUCCESS", "mo2f_configured_2FA_method" => $he));
$Es = $aq->get_user_detail("mo2f_AuthyAuthenticator_config_status", $tV);
if (!($he == "Google Authenticator" || $Es)) {
goto pE6;
}
update_user_meta($tV, "mo2fa_set_Authy_inline", true);
pE6:
delete_site_option($N7);
AmM:
wiJ:
if (isset($_GET["Txid"]) && isset($_GET["accessToken"])) {
goto UqG;
}
if (isset($_POST["emailInlineCloud"])) {
goto t5J;
}
if (isset($_POST["txid"])) {
goto khq;
}
if (isset($_POST["option"]) && $_POST["option"] == "miniorange_passwordreset_request") {
goto ZA0;
}
$kB = isset($_POST["option"]) ? sanitize_text_field($_POST["option"]) : false;
switch ($kB) {
case "miniorange_mfactor_method":
$this->mo2f_mfa_method($_POST);
goto IIk;
case "miniorange_rba_validate":
$this->check_rba_validation($_POST);
goto IIk;
case "miniorange_rba_cancle":
$this->check_rba_cancalation($_POST);
goto IIk;
case "miniorange_forgotphone":
$this->check_miniorange_challenge_forgotphone($_POST);
goto IIk;
case "miniorange2f_back_to_inline_registration":
$this->miniorange2f_back_to_inline_registration($_POST);
exit;
case "miniorange_alternate_login_kba":
$this->check_miniorange_alternate_login_kba($_POST);
goto IIk;
case "miniorange_kba_validate":
$this->check_kba_validation($_POST);
goto IIk;
case "miniorange_mobile_validation":
$this->check_miniorange_mobile_validation($_POST);
goto IIk;
case "miniorange_mobile_validation_failed":
$this->check_miniorange_mobile_validation_failed($_POST);
goto IIk;
case "miniorange_softtoken":
$this->check_miniorange_softtoken($_POST);
goto IIk;
case "miniorange_soft_token":
$this->check_miniorange_soft_token($_POST);
goto IIk;
case "miniorange_inline_skip_registration":
$this->check_miniorange_inline_skip_registration($_POST);
goto IIk;
case "miniorange_attribute_collection":
$this->check_miniorange_attribute_collection($_POST);
goto IIk;
case "miniorange_inline_save_2factor_method":
$this->save_inline_2fa_method();
goto IIk;
case "mo2f_skip_2fa_setup":
$this->mo2f_skip_2fa_setup();
goto IIk;
case "miniorange_back_inline":
$this->back_to_select_2fa();
goto IIk;
case "miniorange_inline_ga_validate":
$this->inline_validate_and_set_ga();
goto IIk;
case "miniorange_inline_show_mobile_config":
$this->inline_mobile_configure();
goto IIk;
case "miniorange_inline_complete_mobile":
$this->mo2f_inline_validate_mobile_authentication();
goto IIk;
case "mo2f_inline_backup_kba_option":
case "mo2f_inline_kba_option":
$this->mo2f_inline_validate_kba();
goto IIk;
case "miniorange_inline_complete_otp_over_sms":
$this->mo2f_inline_send_otp();
goto IIk;
case "miniorange_inline_complete_otp":
$this->mo2f_inline_validate_otp();
goto IIk;
case "miniorange_inline_login":
$this->mo2f_inline_login();
goto IIk;
case "miniorange_inline_register":
$this->mo2f_inline_register();
goto IIk;
case "miniorange_inline_user_reg_prompt":
$this->mo2f_inline_registeration();
goto IIk;
case "miniorange_inline_user_reg_nonce":
$this->mo2f_inline_validate_otp_registration();
goto IIk;
case "mo2f_users_backup1":
$this->mo2f_download_backup_codes_inline();
goto IIk;
case "mo2f_goto_wp_dashboard":
$this->mo2f_goto_wp_dashboard();
goto IIk;
case "miniorange_backup_nonce":
$this->mo2f_use_backup_codes($_POST);
goto IIk;
case "miniorange_validate_backup_nonce":
$this->check_backup_codes_validation($_POST);
goto IIk;
case "miniorange_create_backup_codes":
$this->mo2f_create_backup_codes();
goto IIk;
case "miniorange_challenge_forgotphone":
$this->miniorange_challenge_forgotphone_nonce();
goto IIk;
case "mo2f_resend_otp_nonce":
$this->mo2f_resend_otp_nonce();
goto IIk;
case "miniorange_inline_resend_otp":
$this->miniorange_inline_resend_otp();
goto IIk;
case "miniorange_inline_goto_user_registration":
$this->miniorange_inline_goto_user_registration();
goto IIk;
default:
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: Invalid Request."));
return $wX;
goto IIk;
}
vf2:
IIk:
goto hSB;
UqG:
$tV = sanitize_text_field($_GET["userID"]);
$CJ = sanitize_text_field($_GET["Txid"]);
$Je = get_site_option($tV);
$hq = get_site_option($CJ);
$Md = $tV . "D";
$jG = get_site_option($Md);
$WC = dirname(__FILE__);
$WC = explode("wp-content", $WC);
$WC = explode("handler", $WC[1]);
$ql = __("You are not authorized to perform this action", "miniorange-2-factor-authentication");
$fg = __("Please contact to your admin", "miniorange-2-factor-authentication");
$ux = "red";
if (!(3 == $hq)) {
goto wVd;
}
$NB = "time" . $CJ;
$DG = round(microtime(true) * 1000);
$Dh = get_site_option($NB);
$Da = ($DG - $Dh) / 1000;
if (!($Da <= 300)) {
goto SUH;
}
$jH = sanitize_text_field($_GET["accessToken"]);
if ($jH == $Je) {
goto vXF;
}
if ($jH == $jG) {
goto BoA;
}
goto Sh1;
vXF:
update_site_option($CJ, 1);
$fg = sprintf(__("Transaction has been successfully validated.%sPlease continue with the transaction.", "miniorange-2-factor-authentication"), "<br><br>");
$ql = __("TRANSACTION SUCCESSFUL", "miniorange-2-factor-authentication");
$ux = "green";
goto Sh1;
BoA:
update_site_option($CJ, 0);
$fg = sprintf(__("Transaction has been Canceled.%sPlease Try Again.", "miniorange-2-factor-authentication"), "<br><br>");
$ql = __("TRANSACTION DENIED", "miniorange-2-factor-authentication");
Sh1:
SUH:
delete_site_option($tV);
delete_site_option($Md);
delete_site_option($NB);
wVd:
$this->display_email_verification($ql, $fg, $ux);
exit;
goto hSB;
t5J:
$T7 = sanitize_text_field($_POST["miniorange_emailChange_nonce"]);
if (!wp_verify_nonce($T7, "miniorange-2-factor-email-change-nonce")) {
goto ZsK;
}
$vj = sanitize_text_field($_POST["emailInlineCloud"]);
$mJ = sanitize_text_field($_POST["current_user_id"]);
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$kO = isset($_POST["redirect_to"]) ? esc_url_raw($_POST["redirect_to"]) : null;
if (!filter_var($vj, FILTER_VALIDATE_EMAIL)) {
goto DGl;
}
global $aq;
$aq->update_user_details($mJ, array("mo2f_user_email" => $vj, "mo2f_configured_2FA_method" => ''));
prompt_user_to_select_2factor_mthod_inline($mJ, "MO_2_FACTOR_INITIALIZE_TWO_FACTOR", '', $kO, $dj, null);
DGl:
goto IhJ;
ZsK:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request."), "miniorange-2-factor-authentication");
return $wX;
IhJ:
goto hSB;
khq:
$T2 = sanitize_text_field($_POST["txid"]);
$kw = get_site_option($T2);
update_site_option("optionVal1", $kw);
if (!($kw == 1 || $kw == 0)) {
goto ksN;
}
delete_site_option($T2);
ksN:
echo $kw;
exit;
goto hSB;
ZA0:
global $WC;
$aY = get_userdata($_POST["mo2f_resetpass_id"]);
$eO = new Customer_Setup();
$CG = json_decode($eO->validate_otp_token("OTP_OVER_EMAIL", null, $_POST["mo2f_txid"], $_POST["mo2fa_softtoken"], get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key"), $aY), true);
if ($CG["status"] == "SUCCESS") {
goto ccc;
}
$wX = new WP_Error();
$wX->add("invalid otp", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid OTP.", "miniorange-2-factor-authentication"));
return $wX;
goto RnX;
ccc:
$bR = $_POST["mo2f_resetpass_id"];
global $wpdb, $UZ;
$ZR = get_userdata($bR);
do_action("lostpassword_post");
if ($ZR) {
goto p_2;
}
return false;
p_2:
$Hz = $ZR->user_login;
$GH = $ZR->user_email;
do_action("retreive_password", $Hz);
do_action("retrieve_password", $Hz);
$DH = apply_filters("allow_password_reset", true, $ZR->ID);
if (!$DH) {
goto XZR;
}
if (is_wp_error($DH)) {
goto Ulo;
}
goto zQR;
XZR:
return false;
goto zQR;
Ulo:
return false;
zQR:
$Yt = get_password_reset_key($ZR);
do_action("retrieve_password_key", $Hz, $Yt);
if (!empty($UZ)) {
goto FXJ;
}
require_once ABSPATH . "wp-includes/class-phpass.php";
$UZ = new PasswordHash(8, true);
FXJ:
$AG = $UZ->HashPassword($Yt);
$F3 = __("Someone requested that the password be reset for the following account:") . "\xd\xa\xd
";
$F3 .= network_home_url("/") . "
\xa
\xa";
$F3 .= sprintf(__("Username: %s"), $Hz) . "
\xa\xd
";
$F3 .= __("If this was a mistake, just ignore this email and nothing will happen.") . "\xd
\xd\xa";
$F3 .= __("To reset your password, visit the following address:") . "
\xa";
$F3 .= "<" . network_site_url("wp-login.php?action=rp&key={$Yt}&login=" . rawurlencode($Hz), "login") . ">\xd
";
if (is_multisite()) {
goto uvT;
}
$VS = wp_specialchars_decode(get_site_option("blogname"), ENT_QUOTES);
goto Or7;
uvT:
$VS = $GLOBALS["current_site"]->site_name;
Or7:
$NZ = sprintf(__("[%s] Password Reset"), $VS);
$NZ = apply_filters("retrieve_password_title", $NZ);
$F3 = apply_filters("retrieve_password_message", $F3, $Yt);
if (!($F3 && !MoWpnsUtility::mo2f_wp_mail($GH, $NZ, $F3))) {
goto zgx;
}
wp_die(__("The e-mail could not be sent.") . "<br />
" . __("Possible reason: your host may have disabled the mail() function..."));
zgx:
echo "<p>Link for password reset has been emailed to you. Please check your email.</p>";
exit;
RnX:
hSB:
}
public function mo2fa_select_method($OZ, $uV, $wp, $dj, $kO, $hQ)
{
global $ce;
if ("OTP Over Email" === $uV || "OTP OVER EMAIL" === $uV || "EMAIL" === $uV) {
goto OMK;
}
$uV = MO2f_Utility::mo2f_decode_2_factor($uV, "server");
goto yGK;
OMK:
$uV = "EMAIL";
if (!(MoWpnsUtility::get_mo2f_db_option("cmVtYWluaW5nT1RQ", "site_option") <= 0)) {
goto JLr;
}
update_site_option("bGltaXRSZWFjaGVk", 1);
JLr:
yGK:
if (!("OTPOverTelegram" === $uV)) {
goto H6M;
}
$uV = "OTP Over Telegram";
H6M:
if (("GOOGLE AUTHENTICATOR" === $uV || "SOFT TOKEN" === $uV || "AUTHY AUTHENTICATOR" === $uV) && MoWpnsUtility::get_mo2f_db_option("mo2f_enable_2fa_prompt_on_login_page", "site_option") && !isset($_POST["mo_woocommerce_login_prompt"])) {
goto SVh;
}
if (MO2f_Utility::check_if_request_is_from_mobile_device(isset($_SERVER["HTTP_USER_AGENT"]) ? sanitize_text_field(wp_unslash($_SERVER["HTTP_USER_AGENT"])) : '') && $hQ) {
goto E2F;
}
if ("MOBILE AUTHENTICATION" === $uV) {
goto pER;
}
if ("PUSH NOTIFICATIONS" === $uV || "OUT OF BAND EMAIL" === $uV || "Email Verification" === $uV) {
goto d33;
}
if ("SOFT TOKEN" === $uV || "SMS" === $uV || "PHONE VERIFICATION" === $uV || "GOOGLE AUTHENTICATOR" === $uV || "EMAIL" === $uV || "OTP Over Telegram" === $uV || "OTP Over Whatsapp" === $uV) {
goto riE;
}
if ("KBA" === $uV || "Security Questions" === $uV) {
goto Q56;
}
if ("NONE" === $uV) {
goto f0N;
}
$this->remove_current_activity($dj);
$wX = new WP_Error();
if (MO2f_Utility::get_index_value("GLOBALS", "mo2f_is_ajax_request")) {
goto FMx;
}
MO2f_Utility::mo2f_debug_file("Two factor method has not been configured User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$wX->add("empty_username", __("<strong>ERROR</strong>: Two Factor method has not been configured."));
return $wX;
goto UBQ;
FMx:
MO2f_Utility::mo2f_debug_file("Two factor method has not been configured User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$b1 = array("notice" => "<div style="border-left:3px solid #dc3232;"> Two Factor method has not been configured.");
wp_send_json_success($b1);
UBQ:
goto vPf;
pER:
$this->mo2f_pass2login_mobile_verification($OZ, $kO, $dj);
goto vPf;
d33:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_push_oobemail_verification($OZ, $uV, $kO, $dj);
goto vPf;
riE:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_otp_verification($OZ, $uV, $kO, $dj);
goto vPf;
Q56:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_kba_verification($OZ->ID, $kO, $dj);
goto vPf;
f0N:
MO2f_Utility::mo2f_debug_file("mo2f_second_factor is NONE User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
if (MO2f_Utility::get_index_value("GLOBALS", "mo2f_is_ajax_request")) {
goto wUv;
}
return $OZ;
goto ptE;
wUv:
$this->mo2fa_pass2login($kO, $dj);
ptE:
vPf:
goto slx;
E2F:
$this->mo2f_pass2login_kba_verification($OZ->ID, $kO, $dj);
slx:
goto G6M;
SVh:
$wX = $this->mo2f_validate_soft_token($OZ, $uV, $wp, $dj, $kO);
if (!is_wp_error($wX)) {
goto YM3;
}
return $wX;
YM3:
G6M:
}
function mo2f_mfa_method($HN)
{
$T7 = isset($HN["mo2f_miniorange_2factor_method_nonce"]) ? sanitize_key($HN["mo2f_miniorange_2factor_method_nonce"]) : '';
if (!wp_verify_nonce($T7, "mo2f_miniorange-2factor-method-nonce")) {
goto mHX;
}
$d0 = isset($HN["session_id"]) ? sanitize_text_field(wp_unslash($HN["session_id"])) : null;
$OE = MO2f_Utility::mo2f_get_transient($d0, "mo2f_current_user_id");
$OZ = get_user_by("id", $OE);
$w6 = isset($HN["mo2f_selected_mfactor_method"]) ? sanitize_text_field(wp_unslash($HN["mo2f_selected_mfactor_method"])) : '';
$kO = esc_url_raw(wp_unslash($HN["redirect_to"]));
$this->mo2fa_select_method($OZ, $w6, null, $d0, $kO, null);
goto LID;
mHX:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
LID:
}
function miniorange_inline_goto_user_registration()
{
global $aq;
if (!isset($_POST["miniorange_inline_goto_user_registration_nonce"])) {
goto Wab;
}
$T7 = $_POST["miniorange_inline_goto_user_registration_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-goto-user-registration-nonce")) {
goto FAx;
}
$this->miniorange_pass2login_start_session();
$kO = isset($_POST["redirect_to"]) ? $_POST["redirect_to"] : null;
$dj = isset($_POST["session_id"]) ? $_POST["session_id"] : null;
$current_user = MO2f_Utility::getUserFromSessionId($dj);
delete_user_meta($current_user->ID, "mo_2fa_verify_otp_create_account");
$aq->update_user_details($current_user->ID, array("mo_2factor_user_registration_status" => '', "mo2f_user_email" => ''));
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REGISTRATION";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj, null);
goto gtz;
FAx:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
gtz:
Wab:
}
function miniorange_inline_resend_otp()
{
global $aq;
$T7 = $_POST["miniorange_inline_resend_otp_nonce"];
if (!wp_verify_nonce($T7, "miniorange-2-factor-inline-resend-otp-nonce")) {
goto VVs;
}
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["session_id"]) ? $_POST["session_id"] : null;
$kO = isset($_POST["redirect_to"]) ? $_POST["redirect_to"] : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$current_user = get_user_by("id", $bR);
$Jj = $aq->get_user_detail("mo2f_configured_2FA_method", $current_user->ID);
$Cr = $current_user->ID;
$oR = '';
$o4 = '';
$z5 = '';
if ($Jj == "SMS") {
goto yZS;
}
if ($Jj == "SMS AND EMAIL") {
goto zGz;
}
if ($Jj == "OTP OVER EMAIL") {
goto p0j;
}
if ($Jj == "PHONE VERIFICATION") {
goto HUH;
}
$Re = "EMAIL";
$z5 = $aq->get_user_detail("mo2f_user_email", $Cr);
$oR = __("An OTP has been sent to ", "miniorange-2-factor-authentication") . " <b> " . $z5 . "</b>." . __("Please enter the OTP below to verify your email. If you did not get the email, please check your", "miniorange-2-factor-authentication") . " <b> " . __("SPAM", "miniorange-2-factor-authentication") . " </b> " . __("folder.", "miniorange-2-factor-authentication");
goto Kjp;
yZS:
$Re = "SMS";
$z5 = $aq->get_user_detail("mo2f_user_phone", $Cr);
$F3 = isset($z5) ? __("The One Time Passcode has been sent to ", "miniorange-2-factor-authentication") . $z5 . __(". Please enter the one time passcode below to verify your number.", "miniorange-2-factor-authentication") : __("Please click on Verify button to receive OTP over your phone number.", "miniorange-2-factor-authentication");
$oR = $F3;
goto Kjp;
zGz:
$Re = "OTP_OVER_SMS_AND_EMAIL";
$z5 = array();
$ca = $aq->get_user_detail("mo2f_user_phone", $Cr);
$z5["phone"] = isset($ca) ? $ca : null;
$z5["email"] = $aq->get_user_detail("mo2f_user_email", $Cr);
$F3 = isset($ca) ? __("The One Time Passcode has been sent to ", "miniorange-2-factor-authentication") . $z5["phone"] . __(" and ", "miniorange-2-factor-authentication") . $z5["email"] . __("Please enter the one time passcode below to verify your number and email.", "miniorange-2-factor-authentication") : __("Please click on Verify button to receive OTP over your phone number and your email.", "miniorange-2-factor-authentication");
$oR = $F3;
goto Kjp;
p0j:
$Re = "OTP_OVER_EMAIL";
$z5["email"] = $aq->get_user_detail("mo2f_user_email", $Cr);
$F3 = "The One Time Passcode has been sent to " . $z5 . " Please enter the one time passcode below to verify your email.";
$oR = $F3;
goto Kjp;
HUH:
$Re = "PHONE_VERIFICATION";
$ca = $aq->get_user_detail("mo2f_user_phone", $Cr);
$z5 = isset($ca) ? $ca : null;
$F3 = isset($ca) ? __("You will receive a phone call on this number ", "miniorange-2-factor-authentication") . $z5 . "." . __("Please enter the one time passcode below to verify your number.", "miniorange-2-factor-authentication") : __("Please click on Verify button to receive the phone call.", "miniorange-2-factor-authentication");
$oR = $F3;
Kjp:
$eO = new Customer_Setup();
$CG = json_decode($eO->send_otp_token($z5, $Re, get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key"), $current_user), true);
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto nwr;
}
$oR = __("There was an error in sending one time passcode. Please click on Resend OTP to try again.", "miniorange-2-factor-authentication");
if ($Re == "EMAIL") {
goto x2S;
}
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
goto pSR;
x2S:
$aq->update_user_details($Cr, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_OTP_DELIVERED_FAILURE"));
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
pSR:
goto Zu6;
nwr:
update_user_meta($Cr, "mo_2fa_verify_otp_create_account", $CG["txId"]);
if ($Re == "EMAIL") {
goto gP4;
}
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
goto ioV;
gP4:
$aq->update_user_details($Cr, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_OTP_DELIVERED_SUCCESS"));
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP";
ioV:
Zu6:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj, null);
goto xgb;
VVs:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
xgb:
}
function mo2f_resend_otp_nonce()
{
global $aq;
$T7 = $_POST["mo2f_resend_otp_nonce"];
if (!wp_verify_nonce($T7, "mo2f_resend_otp_nonce")) {
goto Nv8;
}
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["session_id"]) ? $_POST["session_id"] : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$OZ = get_user_by("id", $bR);
$kO = isset($_POST["redirect_to"]) ? $_POST["redirect_to"] : null;
$this->mo2f_pass2login_otp_verification($OZ, "OTP Over SMS", $kO, $dj);
goto RCB;
Nv8:
$wX = new WP_Error();
$wX->add("empty_username", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Request.", "miniorange-2-factor-authentication"));
return $wX;
RCB:
}
function deniedMessage($F3)
{
if (empty($F3) && get_site_option("deniedMessage")) {
goto nB5;
}
return $F3;
goto BDE;
nB5:
delete_site_option("deniedMessage");
BDE:
}
function remove_current_activity($d0)
{
global $aq;
$Bo = array("mo2f_current_user_id", "mo2f_1stfactor_status", "mo_2factor_login_status", "mo2f-login-qrCode", "mo2f_transactionId", "mo2f_login_message", "mo2f_rba_status", "mo_2_factor_kba_questions", "mo2f_show_qr_code", "mo2f_google_auth", "mo2f_authy_keys");
$zz = array("mo2f_current_user_id", "mo2f_1stfactor_status", "mo_2factor_login_status", "mo2f-login-qrCode", "mo2f_transactionId", "mo2f_login_message", "mo2f_rba_status_status", "mo2f_rba_status_sessionUuid", "mo2f_rba_status_decision_flag", "kba_question1", "kba_question2", "mo2f_show_qr_code", "mo2f_google_auth", "mo2f_authy_keys");
$zf = array("session_id", "mo2f_current_user_id", "mo2f_login_message", "mo2f_1stfactor_status", "mo2f_transactionId", "mo_2_factor_kba_questions", "mo2f_rba_status", "ts_created");
MO2f_Utility::unset_session_variables($Bo);
MO2f_Utility::unset_cookie_variables($zz);
$Yt = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_encryption_key");
$d0 = MO2f_Utility::decrypt_data($d0, $Yt);
$aq->save_user_login_details($d0, array("mo2f_current_user_id" => '', "mo2f_login_message" => '', "mo2f_1stfactor_status" => '', "mo2f_transactionId" => '', "mo_2_factor_kba_questions" => '', "mo2f_rba_status" => '', "ts_created" => ''));
}
public function miniorange_pass2login_start_session()
{
if (!(!session_id() || session_id() == '' || !isset($_SESSION))) {
goto D2C;
}
$SQ = ini_get("session.save_path");
if (!(is_writable($SQ) && is_readable($SQ))) {
goto UBu;
}
if (!(session_status() != PHP_SESSION_DISABLED)) {
goto eKU;
}
session_start();
eKU:
UBu:
D2C:
}
function mo2f_pass2login_kba_verification($bR, $kO, $d0)
{
global $aq, $lO;
$lO = $bR;
$GH = $aq->get_user_detail("mo2f_user_email", $bR);
if (!is_null($d0)) {
goto X4O;
}
$d0 = $this->create_session();
X4O:
if (MO2F_IS_ONPREM) {
goto CRF;
}
$Sa = new Customer_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = $Sa->send_otp_token($GH, "KBA", $Tp, $Lv);
$C7 = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto G7b;
}
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: An error occured while processing your request. Please Try again."));
return $wX;
goto G08;
G7b:
if ($C7["status"] == "SUCCESS") {
goto tVu;
}
if ($C7["status"] == "ERROR") {
goto pM3;
}
goto Afi;
tVu:
MO2f_Utility::set_user_values($d0, "mo2f_transactionId", $C7["txId"]);
$this->mo2f_transactionid = $C7["txId"];
$lY = array();
$lY[0] = $C7["questions"][0];
$lY[1] = $C7["questions"][1];
MO2f_Utility::mo2f_set_transient($d0, "mo_2_factor_kba_questions", $lY);
$this->mo2f_kbaquestions = $lY;
$oR = __("Please answer the following questions:", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_KBA_AUTHENTICATION";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0, $this->mo2f_kbaquestions);
goto Afi;
pM3:
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: An error occured while processing your request. Please Try again."));
return $wX;
Afi:
G08:
goto cfy;
CRF:
$Iv = get_user_meta($bR, "mo2f_kba_challenge", false);
$yx = array_keys($Iv[0]);
$Yb = array_rand($yx, 2);
$N6 = $yx[$Yb[0]];
$wu = $yx[$Yb[1]];
$lY[0] = array("question" => $N6);
$lY[1] = array("question" => $wu);
update_user_meta($bR, "kba_questions_user", $lY);
$oR = __("Please answer the following questions:", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_CHALLENGE_KBA_AUTHENTICATION";
$l3 = $lY;
MO2f_Utility::mo2f_set_transient($d0, "mo_2_factor_kba_questions", $lY);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0, $this->mo2f_kbaquestions);
cfy:
}
function miniorange_pass2login_form_fields($o4 = null, $oR = null, $kO = null, $Nc = null, $dj = null, $R5 = null)
{
global $ce;
$Um = $o4;
$Jb = $oR;
$OZ = wp_get_current_user();
switch ($Um) {
case "MO_2_FACTOR_CHALLENGE_MOBILE_AUTHENTICATION":
$Yy = $this->mo2f_transactionid ? $this->mo2f_transactionid : MO2f_Utility::mo2f_get_transient($dj, "mo2f_transactionId");
mo2f_get_qrcode_authentication_prompt($Um, $Jb, $kO, $Nc, $dj, $Yy);
exit;
goto wR_;
case "MO_2_FACTOR_CHALLENGE_SOFT_TOKEN":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
goto wR_;
case "MO_2_FACTOR_CHALLENGE_OTP_OVER_EMAIL":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR, $R5);
exit;
goto wR_;
case "MO_2_FACTOR_CHALLENGE_OTP_OVER_SMS":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
goto wR_;
case "MO_2_FACTOR_CHALLENGE_PHONE_VERIFICATION":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
goto wR_;
case "MO_2_FACTOR_CHALLENGE_OTP_OVER_TELEGRAM":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_retrieve_user_temp_values("mo2f_current_user_id", $dj);
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
case "MO_2_FACTOR_CHALLENGE_GOOGLE_AUTHENTICATION":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
goto wR_;
case "MO_2_FACTOR_CHALLENGE_KBA_AND_OTP_OVER_EMAIL":
mo2f_get_forgotphone_form($Um, $Jb, $kO, $dj);
exit;
goto wR_;
case "MO_2_FACTOR_CHALLENGE_PUSH_NOTIFICATIONS":
$Yy = $this->mo2f_transactionid ? $this->mo2f_transactionid : MO2f_Utility::mo2f_get_transient($dj, "mo2f_transactionId");
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
mo2f_get_push_notification_oobemail_prompt($bR, $Um, $Jb, $kO, $dj, $Yy);
exit;
goto wR_;
case "MO_2_FACTOR_CHALLENGE_OOB_EMAIL":
$Yy = $this->mo2f_transactionid ? $this->mo2f_transactionid : MO2f_Utility::mo2f_get_transient($dj, "mo2f_transactionId");
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
mo2f_get_push_notification_oobemail_prompt($bR, $Um, $Jb, $kO, $dj, $Yy);
exit;
goto wR_;
case "MO_2_FACTOR_RECONFIG_GOOGLE":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$this->mo2f_redirect_shortcode_addon($bR, $Um, $Jb, "reconfigure_google");
exit;
goto wR_;
case "MO_2_FACTOR_RECONFIG_KBA":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$this->mo2f_redirect_shortcode_addon($bR, $Um, $Jb, "reconfigure_kba");
exit;
goto wR_;
case "MO_2_FACTOR_SETUP_SUCCESS":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
MO2f_Utility::mo2f_debug_file("MO 2nd Factor Setup Successfully " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_inline_setup_success($bR, $kO, $dj);
goto wR_;
case "MO_2_FACTOR_CHALLENGE_KBA_AUTHENTICATION":
$kj = $this->mo2f_kbaquestions ? $this->mo2f_kbaquestions : MO2f_Utility::mo2f_get_transient($dj, "mo_2_factor_kba_questions");
if (MO2F_IS_ONPREM) {
goto ZRH;
}
mo2f_get_kba_authentication_prompt($Um, $Jb, $kO, $dj, $kj);
goto qb0;
ZRH:
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$in = get_user_meta($bR, "kba_questions_user");
mo2f_get_kba_authentication_prompt($Um, $Jb, $kO, $dj, $in[0]);
qb0:
exit;
goto wR_;
case "MO_2_FACTOR_REMEMBER_TRUSTED_DEVICE":
mo2f_get_device_form($kO, $dj);
exit;
goto wR_;
case "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
$current_user = get_userdata($bR);
$aA = fetch_methods($current_user);
global $aq;
if (sizeof($aA) > 1 && "MO_2_FACTOR_INITIALIZE_TWO_FACTOR" === $aq->get_user_detail("mo_2factor_user_registration_status", $bR)) {
goto BbD;
}
if ((in_array("SMS", $aA) || in_array("SMS AND EMAIL", $aA) || in_array("PHONE VERIFICATION", $aA)) && "MO_2_FACTOR_KBA_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR) && "MO_2_FACTOR_OTP_EMAIL_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR) && get_user_meta($bR, "mo2f_reconfiguration_on_email", true) !== true) {
goto i40;
}
if ((in_array("SOFT TOKEN", $aA) || in_array("PUSH NOTIFICATIONS", $aA) || in_array("MOBILE AUTHENTICATION", $aA)) && "MO_2_FACTOR_KBA_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR) && "MO_2_FACTOR_OTP_EMAIL_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR) && get_user_meta($bR, "mo2f_reconfiguration_on_email", true) !== true) {
goto zdN;
}
if (in_array("GOOGLE AUTHENTICATOR", $aA) && "MO_2_FACTOR_KBA_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR) && "MO_2_FACTOR_OTP_EMAIL_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR)) {
goto ezo;
}
if (in_array("KBA", $aA) && "MO_2_FACTOR_KBA_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR) && "MO_2_FACTOR_OTP_EMAIL_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR)) {
goto Pzn;
}
if (in_array("OTP OVER TELEGRAM", $aA) && "MO_2_FACTOR_KBA_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR) && "MO_2_FACTOR_OTP_EMAIL_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR)) {
goto sEx;
}
if ((in_array("OTP OVER EMAIL", $aA) || in_array("OTP_OVER_EMAIL", $aA)) && "MO_2_FACTOR_KBA_SETUP_REMAINING" !== $aq->get_user_detail("mo_2factor_user_registration_status", $bR)) {
goto r_m;
}
$K4 = "OUT OF BAND EMAIL";
goto q2F;
r_m:
$K4 = "OTP Over Email";
q2F:
$aq->update_user_details($bR, array("mo2f_configured_2FA_method" => $K4));
$qf = new Two_Factor_Setup();
$vj = get_site_option("mo2f_email_meta_key") && !empty(get_user_meta($bR, get_site_option("mo2f_email_meta_key"), true)) ? get_user_meta($bR, get_site_option("mo2f_email_meta_key"), true) : $aq->get_user_detail("mo2f_user_email", $bR);
$qf->mo2f_update_userinfo($vj, $K4, null, null, null);
$kw = $aq->get_user_detail("mo_2factor_user_registration_status", $bR);
if ("0" === get_option("mo2f_enable_emailchange")) {
goto P9Z;
}
$aq->update_user_details($bR, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_PLUGIN_SETTINGS"));
if (MoWpnsUtility::get_mo2f_db_option("mo2f_disable_kba", "site_option")) {
goto alG;
}
$aq->update_user_details($bR, array("mo2f_OTPOverEmail_config_status" => true));
prompt_user_for_setup_success($bR, '', '', $dj, $kO);
goto ZAX;
alG:
$MC = new Miniorange_Password_2Factor_Login();
$MC->mo2fa_pass2login($kO, $dj);
ZAX:
goto xc1;
P9Z:
if ("MO_2_FACTOR_INITIALIZE_TWO_FACTOR" === $kw || "MO_2_FACTOR_OTP_EMAIL_SETUP_REMAINING" === $kw) {
goto qdK;
}
prompt_user_for_setup_success($bR, $Um, '', $dj, $kO);
goto OLx;
qdK:
if (!(sizeof($aA) > 1 && get_user_meta($bR, "mo2f_back_to_inline_reg", true))) {
goto K4P;
}
prompt_user_to_select_2factor_mthod_inline($bR, $Um, $Jb, $kO, $dj, $Nc);
delete_user_meta($bR, "mo2f_back_to_inline_reg");
exit;
K4P:
if ($K4 == "OTP Over Email") {
goto m84;
}
$vS = new Miniorange_Password_2Factor_Login();
$vS->mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $K4);
goto k1P;
m84:
prompt_user_for_phone_setup($bR, $Um, $Jb, $K4, $kO, $dj);
k1P:
OLx:
xc1:
goto n0r;
sEx:
$aq->update_user_details($bR, array("mo2f_configured_2FA_method" => "OTP Over Telegram"));
prompt_user_for_phone_setup($bR, $Um, $Jb, "OTP Over Telegram", $kO, $dj);
exit;
n0r:
goto rmR;
Pzn:
$aq->update_user_details($bR, array("mo2f_configured_2FA_method" => "KBA"));
prompt_user_for_kba_setup($bR, $Um, $Jb, $kO, $dj);
exit;
rmR:
goto RHY;
ezo:
$aq->update_user_details($bR, array("mo2f_configured_2FA_method" => "GOOGLE AUTHENTICATOR"));
delete_user_meta($bR, "mo2f_reconfiguration_on_email");
prompt_user_for_google_authenticator_setup($bR, $Um, $Jb, $kO, $dj);
exit;
RHY:
goto nQk;
zdN:
$K4 = array_shift($aA);
$aq->update_user_details($bR, array("mo2f_configured_2FA_method" => $K4));
prompt_user_for_miniorange_app_setup($bR, $Um, $Jb, $dj, $Nc, $K4, $kO);
exit;
nQk:
goto KaT;
i40:
if (get_site_option("mo2f_phone_meta_key") && !empty(get_user_meta($bR, get_site_option("mo2f_phone_meta_key")))) {
goto s2s;
}
$K4 = array_shift($aA);
$aq->update_user_details($bR, array("mo2f_configured_2FA_method" => $K4));
prompt_user_for_phone_setup($bR, $Um, $Jb, $K4, $kO, $dj);
goto Hns;
s2s:
do_action("mo2f_p_save_otp_over_sms", $bR, $kO, $dj);
Hns:
exit;
KaT:
goto F1U;
BbD:
if (get_user_meta($bR, "mo2f_reconfiguration_on_email", true) == true) {
goto XIG;
}
prompt_user_to_select_2factor_mthod_inline($bR, $Um, $Jb, $kO, $dj, $Nc);
goto zJt;
XIG:
$aq->update_user_details($bR, array("mo2f_configured_2FA_method" => "GOOGLE AUTHENTICATOR"));
delete_user_meta($bR, "mo2f_reconfiguration_on_email");
prompt_user_for_google_authenticator_setup($bR, $Um, $Jb, $kO, $dj);
zJt:
exit;
F1U:
exit;
goto wR_;
case "MO_2_FACTOR_PROMPT_FOR_RELOGIN":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
prompt_user_for_relogin($bR, $Um, $Jb, $kO, $dj);
exit;
case "MO_2_FACTOR_PROMPT_FOR_USER_REGISTRATION":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
MO2f_Utility::mo2f_debug_file("Promted for user email varification " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
prompt_user_to_register($bR, $Um, $Jb, $kO, $dj);
exit;
case "MO_2_FACTOR_PROMPT_FOR_USER_REG_OTP":
prompt_user_for_validate_otp($Um, $Jb, $kO, $dj);
exit;
case "MO_2_FACTOR_CHALLENGE_BACKUP":
mo2f_backup_form($Um, $Jb, $kO, $dj);
exit;
case "MO_2_FACTOR_GENERATE_BACKUP_CODES":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "mo2f_current_user_id");
mo2f_backup_codes_generate($bR, $kO, $dj);
exit;
default:
$this->mo_2_factor_pass2login_show_wp_login_form();
goto wR_;
}
n7r:
wR_:
}
function miniorange_pass2login_check_mobile_status($Um)
{
if (!($Um == "MO_2_FACTOR_CHALLENGE_MOBILE_AUTHENTICATION")) {
goto sxC;
}
return true;
sxC:
return false;
}
function miniorange_pass2login_check_otp_status($Um, $W_ = false)
{
if (!($Um == "MO_2_FACTOR_CHALLENGE_SOFT_TOKEN" || $Um == "MO_2_FACTOR_CHALLENGE_OTP_OVER_EMAIL" || $Um == "MO_2_FACTOR_CHALLENGE_OTP_OVER_SMS" || $Um == "MO_2_FACTOR_CHALLENGE_PHONE_VERIFICATION" || $Um == "MO_2_FACTOR_CHALLENGE_GOOGLE_AUTHENTICATION")) {
goto gZl;
}
return true;
gZl:
return false;
}
function miniorange_pass2login_check_forgotphone_status($Um)
{
if (!($Um == "MO_2_FACTOR_CHALLENGE_KBA_AND_OTP_OVER_EMAIL")) {
goto ghs;
}
return true;
ghs:
return false;
}
function miniorange_pass2login_check_push_oobemail_status($Um)
{
if (!($Um == "MO_2_FACTOR_CHALLENGE_PUSH_NOTIFICATIONS" || $Um == "MO_2_FACTOR_CHALLENGE_OOB_EMAIL")) {
goto tTE;
}
return true;
tTE:
return false;
}
function miniorange_pass2login_reconfig_google($Um)
{
if (!($Um == "MO_2_FACTOR_RECONFIG_GOOGLE")) {
goto aku;
}
return true;
aku:
return false;
}
function mo2f_redirect_shortcode_addon($mJ, $Um, $Jb, $M2)
{
do_action("mo2f_shortcode_addon", $mJ, $Um, $Jb, $M2);
}
function miniorange_pass2login_reconfig_kba($Um)
{
if (!($Um == "MO_2_FACTOR_RECONFIG_KBA")) {
goto i4L;
}
return true;
i4L:
return false;
}
function miniorange_pass2login_check_kba_status($Um)
{
if (!($Um == "MO_2_FACTOR_CHALLENGE_KBA_AUTHENTICATION")) {
goto VPj;
}
return true;
VPj:
return false;
}
function miniorange_pass2login_check_trusted_device_status($Um)
{
if (!($Um == "MO_2_FACTOR_REMEMBER_TRUSTED_DEVICE")) {
goto mE8;
}
return true;
mE8:
return false;
}
function mo_2_factor_pass2login_woocommerce()
{
echo " \x9\x9<input type="hidden" name="mo_woocommerce_login_prompt" value="1">\xa \x9";
}
function mo_2_factor_pass2login_show_wp_login_form()
{
$dj = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
if (!is_null($dj)) {
goto MM0;
}
$dj = $this->create_session();
MM0:
if (!class_exists("Theme_My_Login")) {
goto ZQl;
}
wp_enqueue_script("tmlajax_script", plugins_url("includes/js/tmlajax.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_localize_script("tmlajax_script", "my_ajax_object", array("ajax_url" => admin_url("admin-ajax.php")));
ZQl:
echo " <p><input type="hidden" name="miniorange_login_nonce"\xa\x9 \x9 value="";
echo wp_create_nonce("miniorange-2-factor-login-nonce");
echo ""/>
\x9\x9 <input type="hidden" id="sessid" name="session_id"\xa\x9\x9 \x9 value="";
echo $dj;
echo ""/>\xa
\x9\x9</p>
\x9\x9";
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_remember_device");
if ($e8 && !is_user_logged_in()) {
goto Ova;
}
if (!MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_enable_2fa_prompt_on_login_page", "get_option")) {
goto hlc;
}
echo "\x9<p>
";
echo "\x9\x9<label class="mo2f_instuction1" title="" . __("If you don't have 2-factor authentication enabled for your WordPress account, leave this field empty.", "google-authenticator") . "">" . __("2 Factor Authentication code*", "google-authenticator") . "<span id="google-auth-info"></span><br />\xa";
echo "\x9 <input type="text" placeholder="No soft Token ? Skip" name="mo_softtoken" id="mo2f_2fa_code" class="mo2f_2fa_code" value="" size="20" style="ime-mode: inactive;" /></label>
";
echo " <p class="mo2f_instuction2" style='color:red; font-size:12px;padding:5px'>* Skip the authentication code if it doesn't apply.</p>\xa";
echo " </p>
";
echo " \xd
";
echo " \xd
";
echo "\xa";
hlc:
goto Mju;
Ova:
if (MO2F_IS_ONPREM) {
goto q72;
}
echo "\x9\x9 <p><input type="hidden" id="miniorange_rba_attribures" name="miniorange_rba_attribures" value=""/></p>\xa\x9 \x9 ";
wp_enqueue_script("mo2fa_jquery_script", plugins_url("includes/js/rba/js/jquery-1.9.1.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_flash_script", plugins_url("includes/js/rba/js/jquery.flash.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_uaparser_script", plugins_url("includes/js/rba/js/ua-parser.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_client_script", plugins_url("includes/js/rba/js/client.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_device_script", plugins_url("includes/js/rba/js/device_attributes.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_swf_script", plugins_url("includes/js/rba/js/swfobject.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_font_script", plugins_url("includes/js/rba/js/fontdetect.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_murmur_script", plugins_url("includes/js/rba/js/murmurhash3.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_miniorange_script", plugins_url("includes/js/rba/js/miniorange-fp.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
goto VUm;
q72:
echo "\x9 \x9
\x9<p><input type="hidden" id="miniorange_rba_attribures" name="miniorange_rba_attribures" value=""/></p>\xa \x9\x9 ";
wp_enqueue_script("mo2fa_mode_script", plugins_url("includes/js/BrowsingModeDetector.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_client_min_script", plugins_url("includes/js/client.min.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION, true);
wp_enqueue_script("mo2fa_device_script", plugins_url("includes/js/device_details.js", dirname(dirname(__FILE__))), array(), MO2F_VERSION, true);
VUm:
Mju:
}
function mo2f_pass2login_mobile_verification($user, $kO, $dj = null)
{
global $aq;
if (!is_null($dj)) {
goto m6P;
}
$dj = $this->create_session();
m6P:
$GH = $aq->get_user_detail("mo2f_user_email", $user->ID);
$At = $_SERVER["HTTP_USER_AGENT"];
MO2f_Utility::mo2f_debug_file("Check user agent to check request from mobile device " . $At);
if (MO2f_Utility::check_if_request_is_from_mobile_device($At)) {
goto EEV;
}
$kx = new Customer_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = $kx->send_otp_token($GH, "MOBILE AUTHENTICATION", $Tp, $Lv);
$C7 = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto Bhq;
}
MO2f_Utility::mo2f_debug_file($o4 . " An error occured while processing your request" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $user->ID . " Email-" . $user->user_email);
$this->remove_current_activity($dj);
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: An error occured while processing your request. Please Try again."));
return $wX;
goto kxj;
Bhq:
if ($C7["status"] == "SUCCESS") {
goto euq;
}
if ($C7["status"] == "ERROR") {
goto lGm;
}
goto d2h;
euq:
$Nc = $C7["qrCode"];
MO2f_Utility::mo2f_set_transient($dj, "mo2f_transactionId", $C7["txId"]);
$this->mo2f_transactionid = $C7["txId"];
$oR = '';
$o4 = "MO_2_FACTOR_CHALLENGE_MOBILE_AUTHENTICATION";
MO2f_Utility::mo2f_debug_file($o4 . " Sent miniOrange QR code Authentication successfully" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $user->ID . " Email-" . $user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, $Nc, $dj);
goto d2h;
lGm:
MO2f_Utility::mo2f_debug_file($o4 . " An error occured while processing your request" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $user->ID . " Email-" . $user->user_email);
$this->remove_current_activity($dj);
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: An error occured while processing your request. Please Try again."));
return $wX;
d2h:
kxj:
goto FLO;
EEV:
$tD = array("mo2f-login-qrCode", "mo2f_transactionId");
MO2f_Utility::unset_session_variables($tD);
MO2f_Utility::unset_cookie_variables($tD);
MO2f_Utility::unset_temp_user_details_in_table("mo2f_transactionId", $dj);
$oR = sprintf(__("Please enter the one time passcode shown in the miniOrange%1$s Authenticator%2$s app.", "miniorange-2-factor-authentication"), "<b>", "</b>");
$o4 = "MO_2_FACTOR_CHALLENGE_SOFT_TOKEN";
MO2f_Utility::mo2f_debug_file("Request from mobile device so promting soft token" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $user->ID . " Email-" . $user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
FLO:
}
function mo2f_pass2login_push_oobemail_verification($current_user, $uV, $kO, $d0 = null)
{
global $aq, $ce;
if (!is_null($d0)) {
goto yia;
}
$d0 = $this->create_session();
yia:
$kx = new Customer_Setup();
if (!($uV == "OUT OF BAND EMAIL" || $uV == "Email Verification")) {
goto bhq;
}
$GH = get_user_meta($current_user->ID, "tempRegEmail", true);
bhq:
if (!empty($GH)) {
goto y6A;
}
$GH = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
y6A:
if (MO2F_IS_ONPREM && $uV != "PUSH NOTIFICATIONS") {
goto HjN;
}
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = $kx->send_otp_token($GH, $uV, $Tp, $Lv);
goto lx5;
HjN:
include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . "api" . DIRECTORY_SEPARATOR . "Mo2f_OnPremRedirect.php";
$pG = new Mo2f_OnPremRedirect();
$CG = $pG->mo2f_pass2login_push_email_onpremise($current_user, $kO, $d0);
lx5:
$C7 = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto d3_;
}
MO2f_Utility::mo2f_debug_file("An error occured while processing your request." . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $current_user->ID . " Email-" . $current_user->user_email);
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: An error occured while processing your request. Please Try again."));
return $wX;
goto mXr;
d3_:
if ($C7["status"] == "SUCCESS") {
goto aYw;
}
if ($C7["status"] == "ERROR" || $C7["status"] == "FAILED") {
goto TBg;
}
goto pwl;
aYw:
MO2f_Utility::mo2f_set_transient($d0, "mo2f_transactionId", $C7["txId"]);
$this->mo2f_transactionid = $C7["txId"];
MO2f_Utility::mo2f_debug_file("Push notification has sent successfully for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $current_user->ID . " Email-" . $current_user->user_email);
$oR = $uV == "PUSH NOTIFICATIONS" ? __("A Push Notification has been sent to your phone. We are waiting for your approval.", "miniorange-2-factor-authentication") : __("An email has been sent to ", "miniorange-2-factor-authentication") . MO2f_Utility::mo2f_get_hidden_email($GH) . __(". We are waiting for your approval.", "miniorange-2-factor-authentication");
$o4 = $uV == "PUSH NOTIFICATIONS" ? "MO_2_FACTOR_CHALLENGE_PUSH_NOTIFICATIONS" : "MO_2_FACTOR_CHALLENGE_OOB_EMAIL";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto pwl;
TBg:
MO2f_Utility::mo2f_set_transient($d0, "mo2f_transactionId", $C7["txId"]);
$this->mo2f_transactionid = $C7["txId"];
MO2f_Utility::mo2f_debug_file("An error occured while sending push notification-" . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $current_user->ID . " Email-" . $current_user->user_email);
$oR = $uV == "PUSH NOTIFICATIONS" ? sprintf(__("An error occured while sending push notification to your app. You can click on %1$sPhone is Offline%2$s button to enter soft token from app or %3$sForgot your phone%4$s button to receive OTP to your registered email.", "miniorange-2-factor-authentication"), "<b>", "</b>", "<b>", "</b>") : __("An error occured while sending email. Please try again.", "miniorange-2-factor-authentication");
$o4 = $uV == "PUSH NOTIFICATIONS" ? "MO_2_FACTOR_CHALLENGE_PUSH_NOTIFICATIONS" : "MO_2_FACTOR_CHALLENGE_OOB_EMAIL";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
pwl:
mXr:
}
function mo2f_pass2login_otp_verification($user, $uV, $kO, $d0 = null)
{
MO2f_Utility::mo2f_debug_file("in mo2f_pass2login_otp_verification");
global $aq, $ce;
if (!is_null($d0)) {
goto lV0;
}
$d0 = $this->create_session();
lV0:
$y7 = get_user_meta($user->ID, "mo2f_external_app_type", true);
if (!($uV == "EMAIL")) {
goto eGc;
}
$ac = get_site_option("mo2f_email_meta_key") && !empty(get_user_meta($user->ID, get_site_option("mo2f_email_meta_key"), true)) ? get_user_meta($user->ID, get_site_option("mo2f_email_meta_key"), true) : $aq->get_user_detail("mo2f_user_email", $user->ID);
$To = get_site_option(base64_encode("remainingOTP"));
if (!($To > get_site_option("EmailTransactionCurrent") or get_site_option(base64_encode("limitReached")))) {
goto wYM;
}
update_site_option(base64_encode("remainingOTP"), 0);
wYM:
eGc:
if (!("SMS" === $uV || "OTP Over SMS" === $uV)) {
goto X54;
}
$ac = get_site_option("mo2f_phone_meta_key") && !empty(get_user_meta($user->ID, get_site_option("mo2f_phone_meta_key"), true)) ? get_user_meta($user->ID, get_site_option("mo2f_phone_meta_key"), true) : $aq->get_user_detail("mo2f_user_phone", $user->ID);
X54:
if ($uV == "SOFT TOKEN") {
goto R4j;
}
if ($uV == "GOOGLE AUTHENTICATOR") {
goto WUS;
}
if ($uV == "OTP Over Telegram") {
goto DL7;
}
$kx = new Customer_Setup();
$CG = '';
$C7 = array();
$ny = 0;
if (!($uV == "OTP Over SMS")) {
goto TMn;
}
$uV = "SMS";
TMn:
if ($uV == "EMAIL") {
goto sxL;
}
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = $kx->send_otp_token($ac, $uV, $Tp, $Lv, $user);
$ac = !isset($C7["phoneDelivery"]["contact"]) ? $ac : $C7["phoneDelivery"]["contact"];
$H7 = MO2f_Utility::get_hidden_phone($ac);
goto M4F;
sxL:
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = $kx->send_otp_token($ac, "OTP Over Email", $Tp, $Lv, $user);
$H7 = MO2f_Utility::mo2f_get_hidden_email($ac);
M4F:
$C7 = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto ODz;
}
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("empty_username", __("<strong>ERROR</strong>: An error occured while processing your request. Please Try again."));
return $wX;
goto elV;
ODz:
if ($C7["status"] == "SUCCESS") {
goto HUA;
}
if (!($C7["message"] == "TEST FAILED.")) {
goto y2i;
}
$C7["message"] = "There is an error in sending the OTP.";
y2i:
$hd = " <a href="" . MoWpnsConstants::VIEW_TRANSACTIONS . ""> check your remaining transactions </a>";
if ($ny == 1) {
goto Uhi;
}
if (MO2F_IS_ONPREM and ($uV == "OTP Over Email" or $uV == "EMAIL" or $uV == "Email Verification")) {
goto Rgg;
}
if (!in_array("administrator", $user->roles)) {
goto JLc;
}
$hd = $hd . " or <a href="" . MoWpnsConstants::rechargeLink . "">add SMS transactions</a> to your account.";
JLc:
goto Dy7;
Uhi:
$hd = "or contact miniOrange";
goto Dy7;
Rgg:
$hd = "Or check your SMTP Server and remaining transactions.";
Dy7:
if (in_array("administrator", $user->roles)) {
goto IlJ;
}
$F3 = $C7["message"] . " Please contact your administrator.";
goto f2W;
IlJ:
$F3 = $C7["message"] . " You can " . $hd;
f2W:
if (isset($C7["txId"])) {
goto c9Q;
}
$C7["txId"] = '';
c9Q:
MO2f_Utility::mo2f_set_transient($d0, "mo2f_transactionId", $C7["txId"]);
$this->mo2f_transactionid = $C7["txId"];
$oR = $F3;
$o4 = "MO_2_FACTOR_CHALLENGE_OTP_OVER_SMS";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto KWs;
HUA:
$ac = !empty($C7["phoneDelivery"]["contact"]) ? MO2f_Utility::get_hidden_phone($C7["phoneDelivery"]["contact"]) : (!empty($C7["email"]) ? MO2f_Utility::mo2f_get_hidden_email($C7["email"]) : "xxxxxx");
$F3 = __("A one time passcode has been sent to ", "miniorange-2-factor-authentication") . $ac . __(". Please enter the OTP to verify your identity.", "miniorange-2-factor-authentication");
update_site_option("mo2f_number_of_transactions", MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_number_of_transactions", "get_option") - 1);
MO2f_Utility::mo2f_set_transient($d0, "mo2f_transactionId", $C7["txId"]);
$this->mo2f_transactionid = $C7["txId"];
$oR = $F3;
if ("OTP Over Email" === $uV || "OTP OVER EMAIL" === $uV || "EMAIL" === $uV) {
goto Ud8;
}
$o4 = "MO_2_FACTOR_CHALLENGE_OTP_OVER_SMS";
goto Iky;
Ud8:
$o4 = "MO_2_FACTOR_CHALLENGE_OTP_OVER_EMAIL";
Iky:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
KWs:
elV:
goto mGL;
R4j:
$oR = sprintf(__("Please enter the one time passcode shown in the miniOrange%1$s Authenticator%2$s app.", "miniorange-2-factor-authentication"), "<b>", "</b>");
$o4 = "MO_2_FACTOR_CHALLENGE_SOFT_TOKEN";
MO2f_Utility::mo2f_debug_file($o4 . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $user->ID . " Email-" . $user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto mGL;
WUS:
if (get_user_meta($user->ID, "mo2f_reconfiguration_on_email", true) == true) {
goto fwj;
}
$oR = sprintf(__("Please enter the one time passcode shown in the %1$sAuthenticator%2$s app.", "miniorange-2-factor-authentication"), "<b>", "</b>");
$o4 = "MO_2_FACTOR_CHALLENGE_GOOGLE_AUTHENTICATION";
goto uqX;
fwj:
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$oR = '';
uqX:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto mGL;
DL7:
$oc = get_user_meta($user->ID, "mo2f_chat_id", true);
$Je = '';
$ku = 1;
ogh:
if (!($ku < 7)) {
goto j7E;
}
$Je .= rand(0, 9);
l3s:
$ku++;
goto ogh;
j7E:
update_user_meta($user->ID, "mo2f_otp_token", $Je);
update_user_meta($user->ID, "mo2f_telegram_time", time());
$jB = esc_url(MoWpnsConstants::TELEGRAM_OTP_LINK);
$VV = array("mo2f_otp_token" => $Je, "mo2f_chatid" => $oc);
$jM = curl_init();
curl_setopt_array($jM, array(CURLOPT_URL => $jB, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $VV, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false));
$b1 = curl_exec($jM);
curl_close($jM);
if (!($b1 == "SUCCESS")) {
goto h3j;
}
$oR = sprintf(__("Please enter the one time passcode shown sent to your %1$sTelegram%2$s app.", "miniorange-2-factor-authentication"), "<b>", "</b>");
$o4 = "MO_2_FACTOR_CHALLENGE_OTP_OVER_TELEGRAM";
MO2f_Utility::mo2f_debug_file($o4 . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $user->ID . " Email-" . $user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
h3j:
mGL:
}
function mo2fa_pass2login($kO = null, $QH = null)
{
global $aq;
if (empty($this->mo2f_userID) && empty($this->fstfactor)) {
goto cyf;
}
$bR = $this->mo2f_userID;
$og = $this->fstfactor;
goto YXA;
cyf:
$bR = MO2f_Utility::mo2f_get_transient($QH, "mo2f_current_user_id");
$og = MO2f_Utility::mo2f_get_transient($QH, "mo2f_1stfactor_status");
YXA:
if ($bR && $og && $og == "VALIDATE_SUCCESS") {
goto RTg;
}
$this->remove_current_activity($QH);
goto L3e;
RTg:
$OZ = get_user_by("id", $bR);
wp_set_current_user($bR, $OZ->user_login);
$GR = new Miniorange_Mobile_Login();
$GR->remove_current_activity($QH);
wp_set_auth_cookie($bR, true);
do_action("wp_login", $OZ->user_login, $OZ);
redirect_user_to($OZ, $kO);
exit;
L3e:
}
function create_session()
{
global $aq;
$d0 = MO2f_Utility::random_str(20);
$aq->insert_user_login_session($d0);
$Yt = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_encryption_key");
$dj = MO2f_Utility::encrypt_data($d0, $Yt);
return $dj;
}
function miniorange_initiate_2nd_factor($OZ, $aV = null, $kO = null, $wp = '', $dj = null, $Hl = false)
{
global $aq, $ce;
MO2f_Utility::mo2f_debug_file("MO initiate 2nd factor " . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->miniorange_pass2login_start_session();
if (!is_null($dj)) {
goto KU4;
}
$dj = $this->create_session();
KU4:
$_SESSION["mo2f_current_user"] = serialize($OZ);
$_SESSION["mo2f_1stfactor_status"] = "VALIDATE_SUCCESS";
if (!class_exists("UM_Functions")) {
goto YcC;
}
MO2f_Utility::mo2f_debug_file("Using UM login form.");
if (!(!isset($_POST["wp-submit"]) and isset($_POST["um_request"]))) {
goto yyv;
}
$wH = get_site_option("um_role_" . $OZ->roles[0] . "_meta");
if (!(isset($wH) and $wH != '')) {
goto HFV;
}
if (!isset($wH["_um_login_redirect_url"])) {
goto SCC;
}
$kO = $wH["_um_login_redirect_url"];
SCC:
if (!($kO == '')) {
goto CH0;
}
$kO = get_site_url();
CH0:
HFV:
$A_ = '';
if (!isset($_POST["redirect_to"])) {
goto YNR;
}
$A_ = esc_url_raw($_POST["redirect_to"]);
YNR:
if (!($A_ != '' and !is_null($A_))) {
goto Rp2;
}
$kO = $A_;
Rp2:
yyv:
YcC:
MO2f_Utility::mo2f_set_transient($dj, "mo2f_current_user_id", $OZ->ID, 600);
MO2f_Utility::mo2f_set_transient($dj, "mo2f_1stfactor_status", "VALIDATE_SUCCESS", 600);
$this->mo2f_userID = $OZ->ID;
$this->fstfactor = "VALIDATE_SUCCESS";
$QO = true;
$v6 = get_site_option("dG90YWxVc2Vyc0Nsb3Vk");
if (!($v6 < 3)) {
goto O8b;
}
$QO = true;
O8b:
$tB = miniorange_get_user_role($OZ);
$h_ = miniorange_check_if_2fa_enabled_for_roles($tB);
if (MoWpnsUtility::get_mo2f_db_option("mo2f_by_roles", "site_option")) {
goto gUR;
}
$DI = MoWpnsUtility::get_mo2f_db_option("mo2f_remove_user_for_2fa", "site_option");
$Ae = in_array($OZ->ID, $DI);
goto OqZ;
gUR:
$h_ = miniorange_check_if_2fa_enabled_for_roles($tB);
if (!is_network_admin($OZ->ID)) {
goto w06;
}
if (get_site_option("mo2fa_superadmin") == 1) {
goto B_Z;
}
$h_ = 0;
goto qaf;
B_Z:
$h_ = 1;
qaf:
w06:
OqZ:
$TA = (array) $OZ->roles;
$DQ = 0;
$Ct = 0;
$IC = $aq->get_user_detail("mo2f_2factor_enable_2fa_byusers", $OZ->ID);
if (!($IC !== "0")) {
goto RAd;
}
foreach ($TA as $S5) {
if (!(get_site_option("mo2fa_" . $S5) == "1")) {
goto KkQ;
}
$Ct = 1;
KkQ:
pdR:
}
C5E:
if (!is_network_admin($OZ->ID)) {
goto PxU;
}
if (get_site_option("mo2fa_superadmin") == 1) {
goto QdW;
}
$Ct = 0;
goto X60;
QdW:
$Ct = 1;
X60:
PxU:
RAd:
if (MoWpnsUtility::get_mo2f_db_option("mo2f_by_roles", "site_option") && $Ct && $h_) {
goto o0w;
}
if (!$Ae && !MoWpnsUtility::get_mo2f_db_option("mo2f_by_roles", "site_option")) {
goto PfQ;
}
goto BqC;
o0w:
$DQ = 1;
goto BqC;
PfQ:
$DQ = 1;
BqC:
MO2f_Utility::mo2f_debug_file("array($flag,$enabled,$is_customer_admin,$twofactor_enabled,$roles)");
MO2f_Utility::mo2f_debug_file(print_r(array($Ct, $h_, $QO, $DQ, $TA), true));
if ($QO && $DQ) {
goto vhS;
}
if ($Hl) {
goto mhc;
}
$this->remove_current_activity();
$wX = new WP_Error("error", __("Two-factor is not enabled for you. Please login using username and password.", "miniorange-2-factor-authentication"));
return $wX;
goto sZf;
mhc:
$this->mo2fa_pass2login($kO);
sZf:
goto CwR;
vhS:
$Vz = $aq->get_user_detail("mo_2factor_user_registration_status", $OZ->ID);
$hQ = $aq->get_user_detail("mo2f_SecurityQuestions_config_status", $OZ->ID);
MO2f_Utility::mo2f_debug_file("array($flag,$enabled,$is_customer_admin,$twofactor_enabled)");
MO2f_Utility::mo2f_debug_file(print_r(array($Ct, $h_, $QO, $DQ), true));
if (MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_enable_brute_force", "get_option")) {
goto TBl;
}
$d1 = "disabled";
goto jtv;
TBl:
$d1 = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_allwed_login_attempts");
jtv:
update_user_meta($OZ->ID, "mo2f_user_login_attempts", $d1);
$tF = new Mo2fDB();
$TP = $tF->check_alluser_limit_exceeded($OZ->ID);
$Zl = $aq->get_user_detail("mo2f_2factor_enable_2fa_byusers", $OZ->ID);
MO2f_Utility::mo2f_debug_file("array($mo_2factor_user_registration_status,$tfa_enabled)");
MO2f_Utility::mo2f_debug_file(print_r(array($Vz, $Zl), true));
if (!($Zl == 0 && $Vz != "MO_2_FACTOR_PLUGIN_SETTINGS" && $Zl != '')) {
goto jz0;
}
$TP = 1;
jz0:
MO2f_Utility::mo2f_debug_file("$mo_2factor_user_registration_status == 'MO_2_FACTOR_PLUGIN_SETTINGS'");
MO2f_Utility::mo2f_debug_file(print_r($Vz == "MO_2_FACTOR_PLUGIN_SETTINGS", true));
if ($Vz == "MO_2_FACTOR_PLUGIN_SETTINGS") {
goto qmh;
}
MO2f_Utility::mo2f_debug_file("USer don't have anything configured");
if (!$this->mo2f_is_new_user($OZ)) {
goto ZTQ;
}
if (!get_option("mo2fa_" . $OZ->roles[0])) {
goto d4M;
}
if (!(get_option("mo2f_grace_period") === "on")) {
goto UN2;
}
update_user_meta($OZ->ID, "mo2f_user_login_status", 1);
update_user_meta($OZ->ID, "mo2f_grace_period_status", strtotime(current_datetime()->format("h:ia M d Y")));
UN2:
d4M:
ZTQ:
if (!MoWpnsUtility::get_mo2f_db_option("mo2f_inline_registration", "site_option") && !$this->mo2f_is_grace_period_expired($OZ)) {
goto Ac9;
}
if (!MoWpnsUtility::get_mo2f_db_option("mo2f_enable_emailchange", "site_option")) {
goto rRA;
}
if (MO2F_IS_ONPREM) {
goto TrJ;
}
$vj = $OZ->user_email;
$aq->update_user_details($OZ->ID, array("mo2f_configured_2FA_method" => ''));
$Vz = $aq->get_user_detail("mo_2factor_user_registration_status", $OZ->ID);
goto men;
TrJ:
men:
$oR = '';
$o4 = '';
if ($Vz == "MO_2_FACTOR_INITIALIZE_TWO_FACTOR") {
goto boZ;
}
$aq->insert_user($OZ->ID, array("user_id" => $OZ->ID));
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_FOR_USER_REGISTRATION";
goto fkM;
boZ:
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
fkM:
goto NbQ;
rRA:
$vj = $OZ->user_email;
$aq->insert_user($OZ->ID, array("user_id" => $OZ->ID));
if (MO2f_Utility::check_if_email_is_already_registered($OZ->ID, $vj)) {
goto aga;
}
$Cr = $OZ->ID;
if (MO2F_IS_ONPREM) {
goto uaL;
}
$oR = '';
$qf = new Two_Factor_Setup();
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
delete_user_meta($Cr, "mo2f_user_email");
$aq->update_user_details($Cr, array("mo2f_user_email" => ''));
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto NEk;
}
if ($Kk["status"] == "ERROR") {
goto OrZ;
}
if (strcasecmp($Kk["status"], "USER_FOUND") == 0) {
goto cot;
}
if (strcasecmp($Kk["status"], "USER_NOT_FOUND") == 0) {
goto wK2;
}
if (strcasecmp($Kk["status"], "USER_FOUND_UNDER_DIFFERENT_CUSTOMER") == 0) {
goto PWu;
}
goto KmG;
OrZ:
$oR = Mo2fConstants::langTranslate($Kk["message"]);
$o4 = "MO_2_FACTOR_PROMPT_FOR_RELOGIN";
goto KmG;
cot:
$aq->update_user_details($Cr, array("mo2f_user_email" => ''));
$aq->update_user_details($Cr, array("user_registration_with_miniorange" => "SUCCESS", "mo2f_user_email" => $vj, "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR"));
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
goto KmG;
wK2:
$CG = json_decode($qf->mo_create_user($OZ, $vj), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto tsW;
}
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto tj6;
}
if (strcasecmp($CG["status"], "ERROR") == 0) {
goto nmF;
}
goto BCM;
tj6:
$aq->update_user_details($Cr, array("mo2f_user_email" => ''));
$aq->update_user_details($Cr, array("user_registration_with_miniorange" => "SUCCESS", "mo2f_user_email" => $vj, "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR"));
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
goto BCM;
nmF:
$oR = Mo2fConstants::langTranslate($CG["message"]);
$o4 = "MO_2_FACTOR_PROMPT_FOR_RELOGIN";
BCM:
tsW:
goto KmG;
PWu:
$oR = __("The email associated with your account is already registered. Please contact your admin to change the email.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_RELOGIN";
KmG:
NEk:
delete_user_meta($Cr, "mo_2fa_verify_otp_create_account");
goto uzv;
uaL:
$aq->update_user_details($Cr, array("mo2f_user_email" => ''));
$aq->update_user_details($Cr, array("user_registration_with_miniorange" => "SUCCESS", "mo2f_user_email" => $vj, "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR"));
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
delete_user_meta($Cr, "mo_2fa_verify_otp_create_account");
uzv:
goto KeF;
aga:
$oR = __("The email associated with your account is already registered. Please contact your admin to change the email.", "miniorange-2-factor-authentication");
$o4 = "MO_2_FACTOR_PROMPT_FOR_RELOGIN";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
KeF:
NbQ:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto PuA;
Ac9:
if ($Hl) {
goto dSJ;
}
$this->remove_current_activity();
$wX = new WP_Error("error", __("Two-factor is not enabled for you. Please login using username and password.", "miniorange-2-factor-authentication"));
return $wX;
goto akm;
dSJ:
MO2f_Utility::mo2f_debug_file("Logged In Successfully " . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2fa_pass2login($kO);
akm:
PuA:
goto ijO;
qmh:
MO2f_Utility::mo2f_debug_file("User has any 2FA method configured");
$vj = $aq->get_user_detail("mo2f_user_email", $OZ->ID);
try {
if (MO2F_IS_ONPREM) {
goto GZs;
}
$P1 = mo2f_collect_attributes($vj, stripslashes($aV));
MO2f_Utility::set_user_values($dj, "mo2f_rba_status", $P1);
$this->mo2f_rbastatus = $P1;
goto X8R;
GZs:
$P1 = mo2f_collect_attributes($OZ->ID, $aV, $dj);
X8R:
} catch (Exception $mT) {
echo $mT->getMessage();
}
if ($P1["status"] == "SUCCESS" && $P1["decision_flag"]) {
goto DQ9;
}
if ($P1["status"] == "DENY" && MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_rba_installed")) {
goto qA1;
}
if ($P1["status"] == "ERROR" && MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_rba_installed")) {
goto EcM;
}
if ($P1["status"] == "ATTRIBUTE_ERROR") {
goto Zfd;
}
if ($P1["status"] == "ACTION_REQUIRED" and !get_site_option("mo2f_action_rba_limit_exceed") and $aq->get_all_device_count_by_user($OZ->ID) >= MoWpnsUtility::get_mo2f_db_option("mo2f_device_limit", "site_option")) {
goto ZKv;
}
if (!$Zl) {
goto XI7;
}
$uV = '';
if (MO2F_IS_ONPREM) {
goto WFb;
}
$uV = mo2f_get_user_2ndfactor($OZ);
goto WEA;
WFb:
$uV = $aq->get_user_detail("mo2f_configured_2FA_method", $OZ->ID);
if (!($uV == '')) {
goto FVf;
}
$uV = "NONE";
FVf:
$n4 = array("GOOGLE AUTHENTICATOR" => "Google Authenticator", "KBA" => "Security Questions", "OUT OF BAND EMAIL" => "Email Verification", "SMS" => "OTP Over SMS", "OTP_OVER_EMAIL" => "OTP Over Email", "OTP OVER TELEGRAM" => "OTPOverTelegram");
$U8 = 0;
$VW = (array) $this->mo2fa_return_methods_value($OZ->ID);
$H2 = (array) get_site_option("mo2f_auth_methods_for_users");
foreach ($H2 as $Yt => $kB) {
if (!in_array($n4[$Yt], $VW)) {
goto s0P;
}
$U8 = $U8 + 1;
$uV = $n4[$Yt];
s0P:
uUO:
}
Dpn:
if (get_site_option("mo2f_multi_factor_authentication") && $U8 > 1 && !MoWpnsUtility::get_mo2f_db_option("mo2f_enable_2fa_prompt_on_login_page", "site_option")) {
goto hQw;
}
if (!($U8 > 1)) {
goto QYJ;
}
$uV = $aq->get_user_detail("mo2f_configured_2FA_method", $OZ->ID);
QYJ:
goto VqQ;
hQw:
update_site_option("mo2f_login_with_mfa_use", "1");
mo2fa_prompt_mfa_form_for_user($VW, $dj, $kO, $OZ);
exit;
VqQ:
WEA:
if ($uV == "miniOrange Soft Token") {
goto XJ7;
}
if ($uV == "miniOrange Push Notification") {
goto XL9;
}
if ($uV == "miniOrange QR Code Authentication") {
goto aVS;
}
if ($uV == "Security Questions") {
goto Oyl;
}
if ($uV == "OTPOverTelegram") {
goto WIE;
}
if ($uV == "Google Authenticator") {
goto vae;
}
if ($uV == "OTP Over SMS") {
goto SWP;
}
if ($uV == "OTP Over Email" || $uV == "OTP OVER EMAIL" || $uV == "EMAIL" || $uV == "OTP_OVER_EMAIL") {
goto y1f;
}
goto H4u;
XJ7:
$uV = "SOFT TOKEN";
goto H4u;
XL9:
$uV = "PUSH NOTIFICATIONS";
goto H4u;
aVS:
$uV = "MOBILE AUTHENTICATION";
goto H4u;
Oyl:
$uV = "KBA";
goto H4u;
WIE:
$uV = "OTP Over Telegram";
goto H4u;
vae:
$uV = "GOOGLE AUTHENTICATOR";
goto H4u;
SWP:
$uV = "SMS";
goto H4u;
y1f:
$uV = "EMAIL";
H4u:
if (($uV == "GOOGLE AUTHENTICATOR" || $uV == "SOFT TOKEN" || $uV == "AUTHY AUTHENTICATOR") && MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_enable_2fa_prompt_on_login_page", "get_option") && !MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_remember_device") && !isset($_POST["mo_woocommerce_login_prompt"])) {
goto HnX;
}
if (MO2f_Utility::check_if_request_is_from_mobile_device($_SERVER["HTTP_USER_AGENT"]) && $hQ && MoWpnsUtility::get_mo2f_db_option("mo2f_enable_mobile_support", "site_option")) {
goto tmL;
}
MO2f_Utility::mo2f_debug_file("$mo2f_second_factor");
MO2f_Utility::mo2f_debug_file(print_r($uV, true));
if ($uV == "MOBILE AUTHENTICATION") {
goto Gxf;
}
if ($uV == "PUSH NOTIFICATIONS" || $uV == "OUT OF BAND EMAIL" || $uV == "Email Verification") {
goto pOG;
}
if ($uV == "SOFT TOKEN" || $uV == "SMS" || $uV == "PHONE VERIFICATION" || $uV == "GOOGLE AUTHENTICATOR" || $uV == "EMAIL" || $uV == "OTP Over Telegram") {
goto OOZ;
}
if ($uV == "KBA" or $uV == "Security Questions") {
goto Rj0;
}
if ($uV == "NONE") {
goto q3y;
}
$this->remove_current_activity($dj);
$wX = new WP_Error();
MO2f_Utility::mo2f_debug_file("Two factor method has not been configured " . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$wX->add("empty_username", __("<strong>ERROR</strong>: Two Factor method has not been configured."));
return $wX;
goto vf0;
Gxf:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_mobile_verification($OZ, $kO, $dj);
goto vf0;
pOG:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_push_oobemail_verification($OZ, $uV, $kO, $dj);
goto vf0;
OOZ:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_otp_verification($OZ, $uV, $kO, $dj);
goto vf0;
Rj0:
MO2f_Utility::mo2f_debug_file("Initiating 2fa validation template for " . $uV . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_pass2login_kba_verification($OZ->ID, $kO, $dj);
goto vf0;
q3y:
MO2f_Utility::mo2f_debug_file("mo2f_second_factor is NONE" . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
if (MO2f_Utility::get_index_value("GLOBALS", "mo2f_is_ajax_request")) {
goto H6v;
}
return $OZ;
goto ta6;
H6v:
$this->mo2fa_pass2login($kO, $dj);
ta6:
vf0:
goto A_j;
tmL:
$this->mo2f_pass2login_kba_verification($OZ->ID, $kO, $dj);
A_j:
goto Fso;
HnX:
$wX = $this->mo2f_validate_soft_token($OZ, $uV, $wp, $dj, $kO);
if (!is_wp_error($wX)) {
goto JbR;
}
return $wX;
JbR:
Fso:
goto Dak;
DQ9:
MO2f_Utility::mo2f_debug_file("Remembered Device And Logged In Successfully " . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2fa_pass2login($kO, $dj);
goto Dak;
qA1:
MO2f_Utility::mo2f_debug_file("Remember Device Access Denied " . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_restrict_access("Access_denied");
exit;
goto Dak;
EcM:
MO2f_Utility::mo2f_debug_file("Remember Device Access Denied " . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->mo2f_restrict_access("Access_denied");
exit;
goto Dak;
Zfd:
MO2f_Utility::mo2f_debug_file("Remember Device Attribute Error " . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
mo2f_rba_attribute_error();
exit;
goto Dak;
ZKv:
MO2f_Utility::mo2f_debug_file("Remember Device Exceeded " . " User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
mo2f_device_exceeded_error();
exit;
goto Dak;
XI7:
if ($Hl) {
goto Lt8;
}
$this->remove_current_activity();
$wX = new WP_Error("error", __("Two-factor is not enabled for you. Please login using username and password.", "miniorange-2-factor-authentication"));
return $wX;
goto KRB;
Lt8:
$this->mo2fa_pass2login($kO);
KRB:
Dak:
ijO:
CwR:
}
public function mo2fa_return_methods_value($ll)
{
global $aq;
$rc = $aq->get_user_configured_methods($ll);
$kB = empty($rc) ? '' : get_object_vars($rc[0]);
$q5 = array();
foreach ($kB as $s2 => $VZ) {
if (!strpos($s2, "config_status")) {
goto UgQ;
}
$OF = explode("_", $s2);
$sT = MO2f_Utility::mo2f_decode_2_factor($OF[1], "wpdb");
if (!("1" === $kB[$s2])) {
goto Hth;
}
array_push($q5, $sT);
Hth:
UgQ:
OzL:
}
WAp:
return $q5;
}
function mo2fa_inline($OZ, $kO, $d0)
{
global $aq;
$Cr = $OZ->ID;
$vj = $OZ->user_email;
$aq->insert_user($Cr, array("user_id" => $Cr));
$aq->update_user_details($Cr, array("user_registration_with_miniorange" => "SUCCESS", "mo2f_user_email" => $vj, "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR"));
$oR = '';
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
}
function mo2f_validate_soft_token($OZ, $uV, $xp, $dj, $kO = null)
{
global $aq;
$vj = $aq->get_user_detail("mo2f_user_email", $OZ->ID);
$eO = new Customer_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = json_decode($eO->validate_otp_token($uV, $vj, null, $xp, $Tp, $Lv), true);
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto wpk;
}
if (MO2f_Utility::get_index_value("GLOBALS", "mo2f_is_ajax_request")) {
goto yut;
}
return new WP_Error("invalid_one_time_passcode", "<strong>ERROR</strong>: Invalid One Time Passcode.");
goto zyy;
yut:
$b1 = array("notice" => "<div style="border-left:3px solid #dc3232;"> Invalid One Time Passcode.");
wp_send_json_success($b1);
zyy:
goto XjC;
wpk:
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_remember_device");
if ($e8) {
goto kNq;
}
$this->mo2fa_pass2login($kO, $dj);
goto bdE;
kNq:
$o4 = "MO_2_FACTOR_REMEMBER_TRUSTED_DEVICE";
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
bdE:
XjC:
}
function mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $w6)
{
global $aq;
$kx = new Customer_Setup();
$CG = '';
$C7 = array();
$ny = 0;
if ($w6 == "OUT OF BAND EMAIL") {
goto cFX;
}
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$aq->update_user_details($current_user->id, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_OTP_EMAIL_SETUP_REMAINING"));
$this->miniorange_pass2login_form_fields($o4, '', $kO, null, $dj, 1);
goto Jcg;
cFX:
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_customerKey");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_api_key");
$CG = $kx->send_otp_token($vj, "OUT OF BAND EMAIL", $Tp, $Lv, $current_user);
$C7 = json_decode($CG, true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto nlc;
}
if ($C7["status"] == "SUCCESS") {
goto nLL;
}
$o4 = "MO_2_FACTOR_PROMPT_USER_FOR_2FA_METHODS";
$oR = "SMTP is not set, please configure SMTP server first.";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto tWR;
nLL:
$o4 = "MO_2_FACTOR_CHALLENGE_OOB_EMAIL";
$oR = "An email has been sent to " . MO2f_Utility::mo2f_get_hidden_email($vj) . ". We are waiting for your approval.";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
tWR:
nlc:
Jcg:
}
function mo2f_restrict_access($M2)
{
apply_filters("mo2f_rba_addon", $M2);
exit;
}
function mo2f_collect_device_attributes_for_authenticated_user($OZ, $kO = null)
{
global $aq;
$d0 = $this->create_session();
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_remember_device");
if ($e8) {
goto qbt;
}
$this->miniorange_initiate_2nd_factor($OZ, null, $kO, null, $d0);
goto raX;
qbt:
$this->miniorange_pass2login_start_session();
$d0 = $this->create_session();
MO2f_Utility::set_user_values($d0, "mo2f_current_user_id", $OZ->ID);
$this->mo2f_userID = $OZ->ID;
mo2f_collect_device_attributes_handler($d0, $kO);
exit;
raX:
}
function mo2f_check_username_password($user, $Sz, $q9, $kO = null)
{
global $ce;
MO2f_Utility::mo2f_debug_file("in mo2f_check_username_password");
if (!(is_a($user, "WP_Error") && !empty($user))) {
goto AuM;
}
MO2f_Utility::mo2f_debug_file("error is occured");
MO2f_Utility::mo2f_debug_file(print_r($Sz, true));
if (MO2f_Utility::get_index_value("GLOBALS", "mo2f_is_ajax_request")) {
goto YWc;
}
MO2f_Utility::mo2f_debug_file("Not an AJAX request. Returning user");
return $user;
goto qrc;
YWc:
MO2f_Utility::mo2f_debug_file("AJAX request");
$b1 = array("notice" => "<div style="border-left:3px solid #dc3232;"> Invalid User Credentials");
wp_send_json_success($b1);
qrc:
AuM:
if (!($GLOBALS["pagenow"] == "wp-login.php" && isset($_POST["mo_woocommerce_login_prompt"]))) {
goto G9g;
}
MO2f_Utility::mo2f_debug_file("Unauthorized Access");
return new WP_Error("Unauthorized Access.", "<strong>ERROR</strong>: Access Denied.");
G9g:
if (defined("XMLRPC_REQUEST") && XMLRPC_REQUEST) {
goto bKR;
}
MO2f_Utility::mo2f_debug_file("XMLRPC not enabled");
MO2f_Utility::mo2f_debug_file("calling wp_authenticate_username_password");
MO2f_Utility::mo2f_debug_file("$username");
MO2f_Utility::mo2f_debug_file(print_r($Sz, true));
$OZ = wp_authenticate_username_password($user, $Sz, $q9);
if (!get_site_option("mo2f_sesssion_restriction")) {
goto kW8;
}
MO2f_Utility::mo2f_debug_file("in login session management flow");
$u8 = get_site_option("mo2f_maximum_allowed_session", 1);
MO2f_Utility::mo2f_debug_file("$session_allowed");
MO2f_Utility::mo2f_debug_file(print_r($u8, true));
$pW = WP_Session_Tokens::get_instance($OZ->ID);
MO2f_Utility::mo2f_debug_file("$session_details");
MO2f_Utility::mo2f_debug_file(print_r($pW, true));
$Qn = count($pW->get_all());
MO2f_Utility::mo2f_debug_file("$session_count");
MO2f_Utility::mo2f_debug_file(print_r($Qn, true));
if (!($Qn >= (int) $u8)) {
goto Adi;
}
MO2f_Utility::mo2f_debug_file("$session_count >= (int) $session_allowed");
$PO = get_site_option("mo2f_session_allowed_type");
if ($PO) {
goto m9S;
}
MO2f_Utility::mo2f_debug_file("session_limit_exceeded");
return new WP_Error("session_limit_exceeded", __("You have reached the limit for maximum concurrent session allowed. Please logout from another session or wait for it to expire", "miniorange-2-factor-authentication"));
goto gsR;
m9S:
MO2f_Utility::mo2f_debug_file("$session_action");
MO2f_Utility::mo2f_debug_file(print_r($PO, true));
$pn = WP_Session_Tokens::get_instance($OZ->ID);
MO2f_Utility::mo2f_debug_file("$previous_session_details");
MO2f_Utility::mo2f_debug_file(print_r($pn, true));
$xo = $pn->destroy_all();
MO2f_Utility::mo2f_debug_file("$result");
MO2f_Utility::mo2f_debug_file(print_r($xo, true));
gsR:
Adi:
kW8:
if (is_wp_error($OZ)) {
goto hO0;
}
MO2f_Utility::mo2f_debug_file("sign in success");
global $aq;
$Hl = true;
delete_transient("mo2f_enable_login");
MO2f_Utility::mo2f_debug_file("Username and password validate successfully" . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$d0 = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$kO = isset($_REQUEST["redirect_to"]) ? esc_url_raw($_REQUEST["redirect_to"]) : null;
$aV = isset($_POST["miniorange_rba_attribures"]) ? $_POST["miniorange_rba_attribures"] : null;
$np = $aq->get_user_detail("mo2f_configured_2FA_method", $OZ->ID);
$WY = array("MOBILE AUTHENTICATION", "PUSH NOTIFICATIONS", "SOFT TOKEN");
if (MO2F_IS_ONPREM && $np == "Security Questions") {
goto njf;
}
if (MO2F_IS_ONPREM && $np == "Email Verification") {
goto ekB;
}
if (empty($_POST["mo_softtoken"]) && MoWpnsUtility::get_mo2f_db_option("mo2f_enable_2fa_prompt_on_login_page", "site_option") && $np && !get_site_option("mo2f_remember_device") && ($np == "Google Authenticator" || $np == "miniOrange Soft Token" || $np == "Authy Authenticator")) {
goto z6i;
}
$wp = isset($_POST["mo_softtoken"]) ? trim($_POST["mo_softtoken"]) : '';
goto UIu;
z6i:
MO2f_Utility::mo2f_debug_file("2FA prompt on login is enabled");
if (!isset($_POST["mo_woocommerce_login_prompt"])) {
goto LUG;
}
$this->miniorange_initiate_2nd_factor($OZ, '', '', '');
LUG:
if (MO2f_Utility::get_index_value("GLOBALS", "mo2f_is_ajax_request")) {
goto DLm;
}
return new WP_Error("one_time_passcode_empty", "<strong>ERROR</strong>: Please enter the One Time Passcode.");
goto bJI;
DLm:
$b1 = array("notice" => "<div style="border-left:3px solid #dc3232;"> Please enter the One Time Passcode");
wp_send_json_success($b1);
bJI:
UIu:
$aV = isset($_POST["miniorange_rba_attribures"]) ? $_POST["miniorange_rba_attribures"] : null;
$d0 = isset($_POST["session_id"]) ? sanitize_text_field($_POST["session_id"]) : null;
$kO = isset($_REQUEST["redirect_to"]) ? esc_url_raw($_REQUEST["redirect_to"]) : null;
if (!is_null($d0)) {
goto hzF;
}
$d0 = $this->create_session();
hzF:
MO2f_Utility::mo2f_debug_file("calling miniorange_initiate_2nd_factor after success");
$wX = $this->miniorange_initiate_2nd_factor($OZ, $aV, $kO, $wp, $d0, $Hl);
MO2f_Utility::mo2f_debug_file("$error");
MO2f_Utility::mo2f_debug_file(print_r($wX, true));
if (!is_wp_error($wX)) {
goto N6b;
}
MO2f_Utility::mo2f_debug_file("it is wp error");
return $wX;
N6b:
return $wX;
goto KSv;
njf:
MO2f_Utility::mo2f_debug_file("Initiating 2nd factor for KBA" . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->miniorange_initiate_2nd_factor($OZ, $aV, $kO, '', $d0, $Hl);
goto KSv;
ekB:
MO2f_Utility::mo2f_debug_file("Initiating 2nd factor for email verification" . "User_IP-" . $ce->get_client_ip() . " User_Id-" . $OZ->ID . " Email-" . $OZ->user_email);
$this->miniorange_initiate_2nd_factor($OZ, $aV, $kO, null, $d0, $Hl);
KSv:
goto th4;
hO0:
MO2f_Utility::mo2f_debug_file("WP ERROR");
if (MO2f_Utility::get_index_value("GLOBALS", "mo2f_is_ajax_request")) {
goto BeS;
}
MO2f_Utility::mo2f_debug_file("NOT AJAX REQUEST");
$OZ->add("invalid_username_password", "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("Invalid Username or password."), "miniorange-2-factor-authentication");
MO2f_Utility::mo2f_debug_file("Invalid username and password." . "User_IP-" . $ce->get_client_ip());
return $OZ;
goto Brq;
BeS:
MO2f_Utility::mo2f_debug_file("AJAX REQUEST");
$b1 = array("notice" => "<div style="border-left:3px solid #dc3232;"> Invalid User Credentials");
wp_send_json_success($b1);
Brq:
th4:
goto F3y;
bKR:
MO2f_Utility::mo2f_debug_file("XMLRPC enabled");
$OZ = wp_authenticate_username_password($user, $Sz, $q9);
if (is_wp_error($OZ)) {
goto kWV;
}
return $OZ;
goto taK;
kWV:
$this->error = new IXR_Error(403, __("Bad login/pass combination."));
return false;
taK:
$OZ->errors["incorrect_password"][0] = "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("You have entered an invalid login.", "miniorange-2-factor-authentication");
$OZ->errors["invalid_username"][0] = "<strong>" . __("ERROR", "miniorange-2-factor-authentication") . "</strong>: " . __("You have entered an invalid login.", "miniorange-2-factor-authentication");
F3y:
}
public function mo2f_is_new_user($OZ)
{
if (get_user_meta($OZ->ID, "mo2f_user_login_status", true)) {
goto TeM;
}
return true;
goto Nb8;
TeM:
return false;
Nb8:
}
public function mo2f_is_grace_period_expired($OZ)
{
$Jl = get_user_meta($OZ->ID, "mo2f_grace_period_status", true);
$qg = get_option("mo2f_grace_period_value");
if (get_option("mo2f_grace_period_type") === "hours") {
goto MMC;
}
$qg = $qg * 24 * 60 * 60;
goto e7m;
MMC:
$qg = $qg * 60 * 60;
e7m:
$aU = $qg + $Jl;
$xy = strtotime(current_datetime()->format("h:ia M d Y"));
return $aU <= $xy;
}
function display_email_verification($ql, $fg, $ux)
{
$pP = wp_upload_dir();
$Uf = get_site_option("mo2f_enable_custom_poweredby") ? $pP["baseurl"] . "/miniorange/custom.png" : plugin_dir_url(dirname(dirname(__FILE__))) . "includes/images/miniorange_logo.png";
echo "<div style='background-color: #d5e3d9; height:850px;'>
\x9 <div style='height:350px; background-color: #3CB371; border-radius: 2px; padding:2%;'>\xa \x9 <div class='mo2f_tamplate_layout' style='background-color: #ffffff;border-radius: 5px;box-shadow: 0 5px 15px rgba(0,0,0,.5); width:850px;height:350px; align-self: center; margin: 180px auto; ' >
\x9 <div style='text-align: center'><img alt='logo' style='margin-top:10px; width:auto; max-height:100px' src=" . $Uf . "></div>
\x9\x9 <div><hr></div>
\x9\x9 <tbody>\xa\x9 <tr>\xa\x9\x9 <td>
\x9\x9 <p style='margin-top:0;margin-bottom:10px'>
\x9 <p style='margin-top:0;margin-bottom:10px'> <h1 style='color:" . $ux . ";text-align:center;font-size:50px'>" . $ql . "</h1></p>
\x9\x9 <p style='margin-top:0;margin-bottom:10px'>\xa\x9\x9 <p style='margin-top:0;margin-bottom:10px;text-align:center'><h2 style='text-align:center'>" . $fg . "</h2></p>\xa \x9 <p style='margin-top:0;margin-bottom:0px;font-size:11px'>
\x9\x9 </td>\xa </tr>
\xa \x9 </div>
\x9\x9 </div>\xa\x9 </div>";
}
function mo_2_factor_enable_jquery_default_login()
{
wp_enqueue_script("jquery");
}
function miniorange_pass2login_footer_form()
{
echo " \x9<script>
\x9setTimeout(\xa\x9 \x9\x9()=> { jQuery(document).ready(function () {
\x9 \x9\x9 \xa \x9 \x9jQuery('#miniorange_rba_attribures').val(JSON.stringify(rbaAttributes.attributes));
\xa\x9 \x9if (document.getElementById('loginform') != null) {
\x9 \x9 jQuery('#loginform').on('submit', function (e) {
\x9jQuery('#miniorange_rba_attribures').val(JSON.stringify(rbaAttributes.attributes));\xa\x9\x9 \x9\x9});
\x9\x9 } else {\xa \x9if (document.getElementsByClassName('login') != null) {\xa \x9 \x9 jQuery('.login').on('submit', function (e) {
\x9\x9\x9\x9\x9jQuery('#miniorange_rba_attribures').val(JSON.stringify(rbaAttributes.attributes));
\x9 \x9});\xa \x9 \x9 }
\x9\x9\x9\x9}
\x9 \xa \x9\x9})},1000);
\xa\x9\x9</script>
";
}
}
?>
Did this file decode correctly?
Original Code
<?php
require "\x74\167\157\x5f\x66\141\x5f\x6c\157\147\151\x6e\56\x70\x68\160";
class Miniorange_Password_2Factor_Login
{
private $mo2f_kbaquestions;
private $mo2f_userID;
private $mo2f_rbastatus;
private $mo2f_transactionid;
function mo2f_inline_login()
{
global $ce;
$vj = sanitize_email($_POST["\x65\155\141\x69\x6c"]);
$q9 = sanitize_text_field($_POST["\160\141\x73\163\167\157\162\x64"]);
$dj = isset($_POST["\163\145\163\163\x69\157\156\x5f\151\x64"]) ? sanitize_text_field($_POST["\163\145\x73\163\151\x6f\156\x5f\x69\144"]) : null;
$kO = isset($_POST["\162\x65\x64\x69\162\145\143\164\x5f\164\157"]) ? esc_url_raw($_POST["\162\x65\144\151\162\145\143\164\x5f\x74\157"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\x32\x66\137\143\x75\162\162\145\x6e\164\137\165\163\x65\x72\x5f\151\144");
if (!($ce->check_empty_or_null($vj) || $ce->check_empty_or_null($q9))) {
goto kKp;
}
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("\x52\x45\x51\125\x49\122\105\x44\137\106\111\x45\114\104\123");
$Um = "\x4d\117\137\62\x5f\x46\x41\x43\124\x4f\122\x5f\120\122\117\x4d\x50\x54\137\x55\123\105\x52\x5f\106\117\x52\137\62\106\101\x5f\115\105\x54\x48\117\x44\123";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
return;
kKp:
$this->inline_get_current_customer($bR, $vj, $q9, $kO, $dj);
}
function mo2f_inline_register()
{
global $ce, $aq;
$vj = sanitize_email($_POST["\145\155\141\151\x6c"]);
$v0 = $_SERVER["\123\105\122\126\x45\122\137\116\x41\x4d\x45"];
$q9 = sanitize_text_field($_POST["\160\x61\163\x73\167\157\162\144"]);
$bS = sanitize_text_field($_POST["\143\x6f\156\146\151\x72\155\120\x61\163\163\167\x6f\162\144"]);
$dj = isset($_POST["\163\145\x73\163\151\157\x6e\137\151\144"]) ? sanitize_text_field($_POST["\x73\x65\163\x73\151\157\156\137\x69\x64"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "\x6d\157\62\x66\x5f\143\165\x72\162\145\156\x74\x5f\165\x73\145\162\137\x69\x64");
$kO = isset($_POST["\162\145\144\151\162\x65\143\164\137\164\157"]) ? esc_url_raw($_POST["\162\145\144\151\x72\145\x63\164\137\164\157"]) : null;
if (!(strlen($q9) < 6 || strlen($bS) < 6)) {
goto WUE;
}
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("\120\101\x53\x53\x5f\114\x45\116\107\x54\110");
$Um = "\115\117\x5f\62\137\x46\101\103\124\117\x52\137\x50\x52\x4f\115\120\x54\137\x55\x53\105\122\x5f\106\x4f\122\x5f\x32\106\x41\137\x4d\x45\x54\110\x4f\x44\x53";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
WUE:
if (!($q9 != $bS)) {
goto BmP;
}
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("\x50\x41\123\x53\137\115\111\123\115\x41\124\103\110");
$Um = "\115\x4f\x5f\x32\137\x46\x41\x43\x54\x4f\x52\137\x50\x52\x4f\115\120\x54\137\x55\123\105\122\137\x46\x4f\122\x5f\62\x46\x41\137\x4d\105\x54\x48\x4f\104\x53";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
BmP:
if (!(MoWpnsUtility::check_empty_or_null($vj) || MoWpnsUtility::check_empty_or_null($q9) || MoWpnsUtility::check_empty_or_null($bS))) {
goto pnJ;
}
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("\122\x45\x51\x55\111\122\x45\104\137\x46\x49\x45\x4c\104\123");
$Um = "\x4d\117\x5f\x32\x5f\x46\101\x43\x54\117\x52\137\x50\122\117\115\120\x54\x5f\125\x53\105\x52\137\x46\x4f\x52\137\62\106\101\x5f\x4d\x45\124\x48\x4f\x44\x53";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
pnJ:
update_site_option("\155\157\62\146\x5f\145\155\x61\x69\154", $vj);
update_site_option("\155\157\x5f\167\x70\156\163\137\143\x6f\x6d\x70\141\x6e\171", $v0);
update_site_option("\155\x6f\x5f\167\160\156\163\137\160\141\163\x73\x77\x6f\162\144", $q9);
$eO = new MocURL();
$CG = json_decode($eO->check_customer($vj), true);
$aq->insert_user($bR);
switch ($CG["\x73\x74\141\164\x75\163"]) {
case "\103\x55\x53\x54\x4f\115\x45\122\x5f\116\x4f\x54\x5f\x46\x4f\125\116\104":
$GF = json_decode($eO->create_customer($vj, $v0, $q9, $ca = '', $xn = '', $CZ = ''), true);
if (!(strcasecmp($GF["\163\164\x61\164\165\163"], "\123\125\x43\x43\x45\x53\123") == 0)) {
goto BIp;
}
$this->inline_save_success_customer_config($bR, $vj, $GF["\151\144"], $GF["\x61\160\x69\x4b\x65\171"], $GF["\164\x6f\153\145\156"], $GF["\141\160\160\123\145\143\162\x65\164"]);
$this->inline_get_current_customer($bR, $vj, $q9, $kO, $dj);
BIp:
goto PV5;
default:
$this->inline_get_current_customer($bR, $vj, $q9, $kO, $dj);
goto PV5;
}
ghI:
PV5:
}
function mo2f_inline_registeration()
{
global $aq;
$kO = sanitize_text_field($_POST["\x72\145\x64\x69\x72\145\x63\164\x5f\164\157"]);
$d0 = sanitize_text_field($_POST["\x73\x65\163\x73\x69\x6f\x6e\137\151\144"]);
if ((isset($_POST["\155\157\62\x66\137\147\144\x70\162"]) and $_POST["\155\x6f\62\x66\x5f\147\x64\160\162"] == "\x6f\x6e") || !get_site_option("\x6d\157\62\x66\137\x65\156\141\x62\154\145\137\x67\144\x70\x72\137\160\x6f\x6c\151\143\x79")) {
goto wn1;
}
$oR = __("\120\x6c\x65\x61\163\145\40\101\x63\x63\145\x70\164\40\x74\x68\x65\40\164\145\x72\x6d\163\x20\141\x6e\x64\x20\x43\x6f\156\x64\151\x74\x6f\x6e\163\x2e", "\x6d\151\x6e\151\157\162\x61\156\147\x65\55\x32\x2d\x66\x61\143\x74\157\162\x2d\141\x75\x74\x68\145\x6e\164\151\x63\x61\164\x69\x6f\x6e");
$o4 = "\x4d\117\137\x32\x5f\x46\101\103\124\117\x52\137\x50\x52\x4f\115\x50\x54\x5f\x46\x4f\x52\x5f\125\x53\x45\x52\137\x52\105\107\x49\123\124\122\x41\x54\x49\117\116";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto JSz;
wn1:
$T7 = $_POST["\155\x69\x6e\151\157\x72\x61\x6e\x67\145\x5f\151\x6e\154\x69\156\x65\x5f\147\145\164\137\163\x74\141\x72\164\145\x64\x5f\x75\163\x65\x72\x5f\162\x65\147\x5f\156\x6f\156\143\145"];
if (!wp_verify_nonce($T7, "\155\151\156\x69\157\162\141\156\x67\145\x2d\62\x2d\146\141\143\164\x6f\162\x2d\151\156\x6c\151\156\x65\55\147\145\x74\x2d\x73\164\x61\162\x74\x65\x64\55\165\163\x65\162\x2d\162\145\147\x2d\x6e\157\x6e\x63\x65")) {
goto e13;
}
$this->miniorange_pass2login_start_session();
$vj = '';
$o4 = '';
$oR = '';
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["\155\x6f\137\165\x73\145\162\145\155\x61\x69\x6c"])) {
goto rAR;
}
$vj = sanitize_email($_POST["\x6d\x6f\x5f\165\x73\145\x72\x65\x6d\141\x69\x6c"]);
goto fkX;
rAR:
$oR = __("\120\154\145\141\x73\145\40\145\156\164\145\x72\x20\145\155\x61\x69\x6c\55\x69\x64\x20\164\x6f\40\162\x65\x67\x69\163\164\145\162\x2e", "\155\151\x6e\151\x6f\162\141\156\147\x65\x2d\62\55\x66\x61\x63\164\x6f\x72\x2d\141\x75\x74\x68\x65\156\x74\x69\143\141\x74\151\x6f\156");
$o4 = "\115\117\137\62\x5f\x46\x41\103\x54\117\122\x5f\x50\122\117\x4d\x50\124\x5f\x46\117\x52\x5f\125\123\x45\122\x5f\x52\105\107\111\123\124\122\101\124\111\x4f\116";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
fkX:
$bR = MO2f_Utility::mo2f_get_transient($d0, "\155\x6f\x32\146\x5f\x63\165\x72\162\x65\x6e\x74\x5f\165\x73\145\x72\137\151\x64");
$current_user = get_user_by("\151\144", $bR);
$Cr = $current_user->ID;
$aq->insert_user($current_user->ID, array("\165\163\x65\162\x5f\x69\144" => $current_user->ID));
if (!MO2f_Utility::check_if_email_is_already_registered($Cr, $vj)) {
goto s2d;
}
$oR = __("\x54\150\145\x20\145\155\141\x69\154\40\x69\163\40\141\154\x72\x65\141\144\171\40\x75\x73\x65\144\40\x62\171\x20\157\x74\x68\145\162\40\165\x73\145\162\56\40\120\154\145\x61\x73\x65\x20\x72\145\147\151\163\x74\x65\162\x20\167\151\x74\150\x20\157\x74\150\145\162\x20\x65\155\141\151\154\x2e", "\x6d\x69\156\151\x6f\x72\x61\156\147\145\55\62\55\x66\141\143\x74\x6f\162\55\141\165\x74\150\x65\x6e\164\x69\143\141\x74\151\x6f\156");
$o4 = "\x4d\117\x5f\62\x5f\x46\x41\x43\124\x4f\x52\x5f\x50\122\117\115\120\124\137\x46\x4f\x52\x5f\x55\x53\x45\122\137\x52\105\107\111\x53\x54\122\x41\124\111\117\116";
goto RDM;
s2d:
$aq->update_user_details($Cr, array("\155\x6f\x32\x66\137\165\x73\145\x72\x5f\145\x6d\x61\151\154" => $vj));
update_user_meta($Cr, "\x65\155\141\151\x6c", $vj);
$qf = new Two_Factor_Setup();
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
if (!MO2F_IS_ONPREM) {
goto xoE;
}
$Kk["\163\x74\141\x74\x75\x73"] = "\x55\x53\x45\122\137\116\117\x54\137\106\117\x55\116\104";
xoE:
if ($Kk["\x73\164\141\164\x75\163"] == "\105\x52\x52\x4f\x52") {
goto K_I;
}
if (strcasecmp($Kk["\x73\164\141\164\x75\163"], "\x55\x53\x45\122\x5f\106\117\x55\x4e\x44\x5f\x55\116\x44\105\x52\x5f\x44\111\106\106\x45\x52\105\x4e\124\137\x43\125\x53\x54\x4f\x4d\x45\x52") == 0) {
goto rSn;
}
if (strcasecmp($Kk["\163\164\x61\164\165\x73"], "\x55\x53\105\x52\137\106\x4f\x55\x4e\x44") == 0 || strcasecmp($Kk["\163\164\x61\164\165\x73"], "\125\123\105\x52\x5f\x4e\117\124\x5f\x46\x4f\125\x4e\104") == 0) {
goto P31;
}
goto SSD;
K_I:
$oR = Mo2fConstants::langTranslate($Kk["\155\x65\163\163\141\147\145"]);
$o4 = "\115\x4f\x5f\62\137\x46\x41\x43\x54\x4f\x52\x5f\120\122\117\x4d\120\124\137\106\x4f\x52\137\125\123\x45\122\137\x52\x45\107\x49\x53\x54\122\x41\x54\x49\117\116";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto SSD;
rSn:
$oR = __("\x54\x68\145\x20\145\155\x61\x69\x6c\40\171\157\165\x20\145\156\x74\x65\162\145\144\x20\151\x73\x20\141\154\162\145\x61\144\171\x20\x72\x65\147\151\x73\x74\x65\x72\145\x64\x2e\x20\120\x6c\x65\141\163\145\40\x72\x65\147\151\163\164\145\162\40\167\151\x74\150\40\141\156\x6f\164\x68\x65\162\40\145\155\141\x69\154\x20\164\x6f\x20\x73\145\164\40\165\160\x20\x54\x77\x6f\x2d\106\141\x63\164\157\x72\x2e", "\x6d\x69\156\151\x6f\x72\141\156\x67\x65\x2d\62\x2d\146\141\x63\x74\x6f\x72\55\x61\x75\164\150\145\x6e\x74\x69\143\141\x74\151\x6f\x6e");
$o4 = "\x4d\x4f\x5f\62\x5f\106\x41\103\x54\117\122\137\x50\x52\x4f\x4d\120\x54\x5f\x46\117\x52\x5f\125\123\x45\x52\x5f\x52\105\x47\111\123\x54\x52\101\124\111\117\116";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto SSD;
P31:
$qf = new Customer_Setup();
$CG = json_decode($qf->send_otp_token($vj, "\x45\115\101\x49\114", get_site_option("\x6d\157\x32\146\137\x63\x75\163\164\x6f\x6d\x65\162\113\145\171"), get_site_option("\155\157\62\146\137\x61\160\151\137\x6b\145\x79"), $current_user), true);
if (strcasecmp($CG["\163\x74\141\x74\x75\x73"], "\123\x55\x43\x43\105\123\x53") == 0) {
goto p8R;
}
$o4 = "\115\117\x5f\62\137\106\101\103\124\117\122\x5f\120\122\117\115\x50\124\x5f\106\x4f\122\137\x55\123\105\122\x5f\122\105\x47\137\x4f\x54\x50";
$oR = __("\124\x68\x65\x72\x65\x20\167\141\163\x20\x61\x6e\40\x65\x72\162\157\x72\x20\151\156\x20\163\145\156\x64\x69\156\147\40\x4f\124\120\x20\x6f\166\x65\x72\x20\145\155\141\x69\154\56\40\120\x6c\x65\x61\163\x65\x20\x63\x6c\x69\143\153\x20\x6f\x6e\x20\122\x65\x73\x65\156\x64\x20\117\x54\120\40\x74\157\x20\164\x72\171\x20\x61\147\141\x69\x6e\x2e", "\x6d\x69\x6e\151\157\162\141\x6e\147\145\55\62\55\146\x61\143\x74\x6f\162\55\x61\165\x74\x68\145\x6e\164\151\x63\x61\164\151\157\156");
$aq->update_user_details($Cr, array("\x6d\157\137\x32\146\x61\x63\x74\x6f\x72\x5f\x75\163\145\x72\x5f\162\145\x67\x69\163\x74\x72\x61\164\x69\x6f\156\137\x73\164\x61\164\x75\x73" => "\115\117\x5f\x32\x5f\x46\101\x43\124\x4f\x52\137\117\124\120\137\104\105\114\111\x56\105\x52\x45\104\x5f\x46\x41\111\x4c\125\x52\x45"));
goto ITp;
p8R:
update_user_meta($Cr, "\155\157\137\x32\x66\x61\x5f\x76\x65\162\x69\146\171\x5f\157\x74\160\x5f\x63\162\x65\x61\x74\145\x5f\x61\x63\x63\157\165\156\164", $CG["\164\170\111\144"]);
$aq->update_user_details($Cr, array("\x6d\157\137\x32\146\x61\143\x74\x6f\162\137\165\x73\145\162\137\x72\145\147\151\163\164\x72\x61\x74\x69\157\x6e\137\x73\x74\x61\164\x75\x73" => "\x4d\117\137\x32\137\106\101\x43\124\117\122\137\x4f\124\x50\x5f\x44\105\x4c\x49\x56\x45\x52\x45\104\137\x53\x55\103\103\x45\x53\123"));
$o4 = "\115\x4f\137\62\x5f\x46\x41\x43\x54\117\122\137\120\122\117\x4d\x50\x54\x5f\106\x4f\122\x5f\x55\x53\105\x52\x5f\122\105\107\x5f\x4f\x54\120";
$oR = __("\x41\156\40\117\x54\120\40\150\141\163\40\x62\x65\145\x6e\x20\x73\145\x6e\164\x20\x74\x6f", "\155\151\156\x69\x6f\x72\141\x6e\147\145\x2d\x32\55\146\141\143\x74\157\162\55\141\x75\164\x68\145\156\164\x69\x63\x61\x74\151\157\156") . "\x20\x3c\142\x3e" . $vj . "\x3c\x2f\x62\76\x2e\x20" . __("\120\154\x65\141\163\145\40\145\x6e\164\x65\x72\40\x74\150\145\x20\x4f\124\120\40\x62\145\154\157\167\x20\x74\x6f\x20\166\145\x72\151\x66\x79\x20\171\157\x75\x72\x20\x65\x6d\x61\x69\154\56\x20\x49\x66\40\171\x6f\x75\40\144\x69\144\x20\156\x6f\x74\x20\x67\x65\164\x20\164\x68\145\x20\145\x6d\x61\151\x6c\54\x20\x70\154\x65\141\163\x65\x20\143\x68\x65\143\x6b\x20\x79\157\165\x72", "\x6d\x69\x6e\151\157\162\141\x6e\x67\x65\x2d\62\55\x66\x61\x63\x74\x6f\x72\x2d\141\165\164\x68\x65\156\x74\151\143\x61\164\x69\157\x6e") . "\x20\x3c\x62\76\40" . __("\x53\120\x41\x4d", "\x6d\151\156\x69\x6f\162\x61\156\x67\145\x2d\x32\55\x66\x61\143\164\x6f\162\x2d\x61\165\164\x68\145\156\x74\x69\143\141\x74\151\x6f\156") . "\40\x3c\57\142\x3e\40" . __("\x66\157\154\x64\145\x72\56", "\x6d\151\156\x69\157\162\x61\x6e\147\x65\55\62\x2d\146\141\143\164\x6f\x72\55\x61\x75\x74\150\x65\156\164\151\x63\141\164\151\x6f\x6e");
ITp:
SSD:
RDM:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto LZc;
e13:
$wX = new WP_Error();
$wX->add("\x65\155\160\164\171\x5f\165\163\x65\x72\156\141\155\145", "\74\x73\164\x72\x6f\156\147\x3e" . __("\x45\x52\122\x4f\x52", "\x6d\151\x6e\151\x6f\162\141\x6e\x67\x65\55\x32\x2d\146\141\x63\x74\x6f\x72\x2d\x61\x75\164\150\x65\156\x74\151\x63\x61\164\151\x6f\156") . "\74\57\163\x74\x72\157\x6e\147\x3e\x3a\x20" . __("\x49\x6e\x76\x61\x6c\151\x64\40\122\x65\x71\x75\x65\x73\x74\x2e", "\x6d\x69\x6e\x69\157\162\141\156\x67\x65\x2d\62\x2d\x66\x61\143\x74\157\162\55\x61\165\164\x68\x65\156\x74\x69\x63\x61\164\x69\157\156"));
return $wX;
LZc:
JSz:
}
function mo2f_ultimate_member_custom_login()
{
echo "\x3c\x64\151\166\40\x69\144\75\42\x6d\x6f\x32\x66\x5f\x75\155\x5f\x76\x61\x6c\151\144\x61\164\145\x5f\x6f\x74\160\x22\40\x63\154\x61\x73\163\75\42\x75\x6d\55\146\x69\x65\154\x64\40\165\x6d\x2d\x66\x69\x65\x6c\144\x2d\160\x61\163\163\x77\157\162\x64\40\40\165\x6d\55\x66\151\x65\154\144\55\x75\163\145\162\x5f\160\141\x73\163\167\157\162\144\x20\x75\x6d\55\146\x69\x65\x6c\144\x2d\x70\x61\163\163\x77\157\162\144\40\165\155\x2d\146\151\x65\154\144\55\x74\x79\x70\x65\137\x70\x61\x73\x73\x77\x6f\x72\x64\42\x20\144\x61\x74\141\55\153\x65\171\75\42\165\x73\145\x72\x5f\x70\x61\163\x73\x77\x6f\x72\144\x22\x3e\74\x64\151\x76\40\x63\x6c\x61\x73\x73\x3d\42\165\x6d\55\146\151\x65\x6c\x64\x2d\x6c\x61\142\145\154\x22\76\74\x6c\x61\142\x65\154\x20\146\x6f\162\75\x22\x6d\157\62\x66\137\x75\155\137\166\141\154\151\x64\141\x74\x65\137\x6f\164\x70\x22\76\x54\x77\x6f\40\x66\141\x63\x74\x6f\x72\x20\143\x6f\144\x65\x2a\x3c\x2f\154\141\142\145\154\x3e\x3c\144\x69\x76\40\x63\x6c\141\x73\x73\x3d\42\x75\x6d\55\x63\154\145\141\x72\42\76\x3c\57\x64\x69\166\76\74\57\144\151\x76\76\74\144\x69\166\40\143\x6c\141\163\x73\75\x22\x75\x6d\55\146\x69\145\x6c\144\x2d\x61\x72\x65\x61\x22\76\74\x69\x6e\x70\165\164\x20\x63\x6c\141\x73\163\x3d\x22\165\155\x2d\x66\x6f\162\155\x2d\146\151\145\x6c\144\40\166\x61\154\x69\x64\40\x22\x20\x74\x79\x70\x65\x3d\x22\x74\145\x78\x74\42\x20\156\x61\x6d\145\x3d\42\x6d\157\x32\x66\137\166\x61\x6c\x69\x64\x61\164\145\137\157\x74\x70\137\x74\x6f\153\x65\156\x22\40\151\144\75\x22\155\x6f\x32\146\137\165\x6d\x5f\x76\141\x6c\151\144\141\x74\x65\x5f\157\164\x70\42\x20\x76\x61\154\x75\x65\75\42\x22\40\x70\154\x61\143\x65\150\157\x6c\x64\x65\162\75\42\x22\x20\144\x61\x74\x61\x2d\166\141\154\x69\144\x61\164\x65\x3d\42\x22\x20\144\x61\164\141\55\x6b\145\171\75\x22\x75\163\145\x72\x5f\x70\x61\163\163\167\157\162\144\42\x3e\xa\xa\11\x9\x9\11\11\x9\x3c\57\144\151\x76\76\x3c\57\144\151\166\x3e";
}
function mo2f_inline_validate_otp_registration()
{
global $aq, $ce;
$T7 = $_POST["\155\151\156\151\157\x72\x61\x6e\147\x65\x5f\x69\156\x6c\x69\156\x65\137\166\x61\154\x69\144\x61\164\x65\x5f\x75\163\145\162\x5f\157\x74\x70\137\x6e\x6f\x6e\143\145"];
$kO = $_POST["\x72\x65\x64\x69\x72\145\143\x74\x5f\x74\157"];
$d0 = $_POST["\x73\x65\x73\163\x69\x6f\156\137\x69\144"];
if (!wp_verify_nonce($T7, "\155\x69\x6e\151\157\162\x61\x6e\x67\x65\55\62\55\x66\x61\x63\164\157\162\x2d\x69\156\154\x69\156\x65\x2d\166\141\x6c\x69\x64\x61\x74\x65\x2d\x75\x73\145\162\55\x6f\x74\160\x2d\156\157\156\x63\x65")) {
goto L20;
}
$this->miniorange_pass2login_start_session();
$wp = '';
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["\157\164\x70\x5f\164\x6f\x6b\x65\156"])) {
goto Fkc;
}
$wp = sanitize_text_field($_POST["\157\164\x70\137\x74\157\153\145\156"]);
goto r05;
Fkc:
$oR = __("\x4f\x54\120\40\143\141\x6e\x20\156\x6f\x74\x20\142\x65\x20\x65\x6d\x70\x74\x79\56\40\x50\154\145\x61\x73\145\x20\x65\x6e\x74\145\162\40\x4f\124\x50\40\164\x6f\40\x76\145\162\x69\x66\x79\56", "\x6d\x69\x6e\151\157\162\x61\x6e\147\x65\55\62\55\146\x61\143\x74\x6f\x72\x2d\141\x75\164\150\x65\156\164\151\x63\x61\164\x69\157\156");
$o4 = "\115\117\x5f\x32\x5f\106\101\x43\x54\x4f\x52\x5f\x50\x52\117\115\x50\124\137\x46\x4f\x52\137\x55\123\105\122\x5f\x52\105\x47\137\x4f\124\120";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
r05:
$bR = MO2f_Utility::mo2f_get_transient($d0, "\155\157\x32\x66\x5f\x63\x75\162\x72\145\156\x74\137\x75\163\145\162\x5f\x69\144");
$current_user = get_user_by("\151\x64", $bR);
if (!("\x4d\117\137\62\137\106\101\103\124\x4f\x52\137\x50\114\125\107\111\116\137\x53\105\x54\124\111\116\x47\x53" === $aq->get_user_detail("\x6d\157\x5f\x32\x66\141\x63\x74\x6f\162\x5f\x75\x73\x65\162\x5f\x72\145\x67\151\163\x74\162\x61\164\151\157\156\137\163\x74\141\x74\165\163", $bR))) {
goto ptl;
}
$o4 = "\x4d\117\x5f\62\137\x46\101\103\124\117\x52\137\x53\105\124\x55\120\137\123\x55\x43\x43\x45\123\123";
$this->miniorange_pass2login_form_fields($o4, '', $kO, null, $d0);
ptl:
$GH = $aq->get_user_detail("\x6d\157\62\x66\137\x75\x73\x65\x72\x5f\145\x6d\x61\151\x6c", $current_user->ID);
if (!MO2f_Utility::check_if_email_is_already_registered($bR, $GH)) {
goto NSU;
}
$oR = __("\x54\x68\145\x20\x65\155\141\x69\x6c\40\x69\163\x20\141\154\x72\145\x61\x64\x79\x20\165\163\x65\144\x20\142\171\40\x6f\x74\150\x65\162\x20\x75\x73\x65\162\56\x20\x50\x6c\145\141\x73\x65\40\x72\x65\x67\x69\x73\x74\x65\x72\x20\167\151\164\150\40\x6f\x74\x68\x65\x72\40\x65\x6d\x61\x69\x6c\40\142\171\x20\143\154\151\143\x6b\x69\156\147\40\157\x6e\40\102\141\x63\x6b\40\x62\165\164\164\x6f\x6e\x2e", "\x6d\151\x6e\x69\x6f\162\141\x6e\147\x65\55\62\55\146\x61\x63\x74\157\162\55\141\165\x74\150\145\x6e\164\151\143\x61\164\151\157\156");
$o4 = "\115\117\x5f\62\x5f\106\x41\103\x54\x4f\x52\137\120\x52\x4f\x4d\x50\x54\x5f\106\x4f\x52\x5f\x55\x53\105\122\137\x52\105\107\x5f\117\124\x50";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto KTq;
NSU:
$eO = new Customer_Setup();
$dc = get_user_meta($bR, "\155\x6f\x5f\x32\146\x61\x5f\x76\x65\162\151\146\x79\x5f\157\x74\160\x5f\143\162\x65\141\x74\145\x5f\x61\143\x63\x6f\x75\x6e\164", true);
$CG = json_decode($eO->validate_otp_token("\x56\105\122\x49\106\131\105\x4d\101\x49\x4c", null, $dc, $wp, get_site_option("\x6d\157\x32\x66\137\x63\165\163\x74\x6f\x6d\x65\162\x4b\145\x79"), get_site_option("\x6d\157\x32\x66\x5f\x61\160\151\x5f\x6b\145\171"), $current_user), true);
if ($CG["\x73\164\x61\x74\x75\163"] == "\x45\122\122\x4f\122") {
goto xAH;
}
if (strcasecmp($CG["\163\164\x61\x74\x75\163"], "\123\x55\x43\x43\x45\123\123") == 0) {
goto YnN;
}
$aq->update_user_details($bR, array("\x6d\x6f\137\x32\x66\x61\143\164\x6f\x72\x5f\x75\163\145\162\137\162\145\x67\151\163\164\162\x61\x74\x69\x6f\x6e\137\x73\x74\x61\x74\165\x73" => "\115\117\137\62\137\106\x41\x43\124\117\122\x5f\x4f\x54\x50\x5f\104\x45\x4c\x49\x56\105\x52\105\x44\137\x46\x41\111\114\x55\122\105"));
$oR = __("\x49\156\166\141\154\151\144\40\117\x54\x50\x2e\x20\120\x6c\x65\x61\163\145\40\x74\x72\171\40\x61\147\141\151\156\x2e", "\x6d\151\x6e\x69\x6f\162\141\x6e\x67\145\x2d\62\x2d\146\x61\x63\164\x6f\162\x2d\141\x75\164\150\x65\156\x74\x69\x63\x61\164\151\x6f\156");
$o4 = "\x4d\117\x5f\62\x5f\x46\x41\103\124\x4f\x52\137\120\122\117\115\120\124\137\106\x4f\122\x5f\125\x53\105\x52\x5f\x52\105\107\x5f\117\x54\x50";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto j97;
YnN:
MO2f_Utility::mo2f_debug_file("\105\155\x61\151\154\40\x76\141\x72\x69\x66\x69\145\144\x20\163\x75\143\x63\145\x73\163\146\x75\x6c\x6c\171\x20" . "\125\x73\145\162\x5f\x49\x50\55" . $ce->get_client_ip() . "\40\x55\x73\x65\x72\137\111\x64\x2d" . $current_user->ID . "\x20\105\155\x61\151\154\x2d" . $current_user->user_email);
$this->mo2f_register_user_inline($GH, $kO, $d0);
j97:
goto dFC;
xAH:
$oR = Mo2fConstants::langTranslate($CG["\x6d\x65\x73\x73\141\147\x65"]);
$o4 = "\x4d\x4f\137\62\x5f\106\101\x43\124\x4f\122\137\x50\122\117\115\120\124\137\106\x4f\122\137\125\x53\x45\x52\137\x52\x45\107\137\117\x54\120";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
dFC:
KTq:
goto rlV;
L20:
$wX = new WP_Error();
$wX->add("\x65\155\160\164\171\x5f\x75\x73\x65\x72\156\141\x6d\x65", "\x3c\x73\x74\x72\157\156\147\x3e" . __("\105\x52\x52\x4f\122", "\x6d\x69\x6e\151\157\x72\x61\x6e\147\x65\55\x32\55\x66\x61\x63\x74\157\162\x2d\x61\165\164\x68\145\x6e\x74\151\x63\x61\x74\151\x6f\x6e") . "\74\57\x73\x74\162\157\x6e\147\76\x3a\x20" . __("\x49\x6e\x76\x61\154\x69\144\x20\122\x65\161\x75\145\x73\164\x2e", "\x6d\151\156\x69\157\162\141\156\x67\x65\x2d\x32\x2d\146\141\143\164\157\162\x2d\x61\165\x74\150\x65\156\x74\x69\x63\x61\x74\x69\157\x6e"));
return $wX;
rlV:
}
function mo2f_download_backup_codes_inline()
{
$T7 = sanitize_text_field($_POST["\155\157\62\146\x5f\151\156\154\x69\x6e\x65\x5f\142\x61\143\x6b\165\x70\x5f\x6e\157\x6e\143\145"]);
$T8 = sanitize_text_field($_POST["\x6d\157\62\x66\x5f\151\156\x6c\151\x6e\145\x5f\x62\x61\x63\x6b\x75\160\137\x63\157\144\x65\x73"]);
if (!wp_verify_nonce($T7, "\x6d\x69\x6e\151\x6f\162\x61\156\x67\x65\x2d\x32\x2d\146\141\143\x74\x6f\162\x2d\151\x6e\x6c\151\x6e\x65\x2d\142\x61\x63\153\165\x70\55\x6e\157\x6e\x63\x65")) {
goto NnQ;
}
$tI = explode("\x2c", $T8);
$d0 = sanitize_text_field($_POST["\163\x65\x73\x73\151\x6f\156\x5f\x69\x64"]);
$IZ = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($d0, "\x6d\157\62\146\x5f\143\x75\162\x72\x65\x6e\x74\x5f\165\x73\145\x72\137\151\144");
update_user_meta($IZ, "\x6d\157\x5f\x62\141\143\153\165\x70\137\x63\x6f\x64\145\x5f\x64\157\x77\156\x6c\157\x61\x64\145\x64", 1);
delete_user_meta($IZ, "\143\x68\x71\x77\x65\164\x63\163\x64\166\156\166\x64");
MO2f_Utility::mo2f_download_backup_codes($IZ, $tI);
goto QRs;
NnQ:
$wX = new WP_Error();
$wX->add("\x65\x6d\160\164\171\137\x75\x73\x65\x72\156\141\155\x65", "\74\x73\x74\x72\157\x6e\147\76" . __("\x45\122\x52\117\x52", "\155\x69\x6e\x69\157\162\141\156\x67\x65\x2d\x32\55\146\141\143\164\157\x72\x2d\141\x75\164\150\145\x6e\x74\151\143\141\x74\x69\157\x6e") . "\x3c\57\163\x74\162\157\x6e\x67\76\x3a\x20" . __("\111\x6e\x76\x61\154\x69\x64\40\x52\x65\161\x75\145\163\x74\x2e", "\155\151\156\151\x6f\x72\x61\x6e\x67\x65\55\62\55\146\141\143\164\157\162\55\x61\165\x74\150\x65\x6e\x74\x69\x63\x61\164\151\x6f\156"));
return $wX;
QRs:
}
function mo2f_goto_wp_dashboard()
{
global $aq;
$T7 = sanitize_text_field($_POST["\155\x6f\x32\x66\137\x69\x6e\154\x69\x6e\145\x5f\x77\160\x5f\x64\x61\163\x68\142\x6f\x61\x72\x64\137\156\x6f\x6e\x63\x65"]);
if (!wp_verify_nonce($T7, "\x6d\x69\156\x69\157\162\141\x6e\x67\x65\55\x32\x2d\x66\141\x63\164\157\x72\55\151\x6e\154\x69\156\145\x2d\167\160\55\x64\x61\x73\150\142\157\141\162\x64\x2d\156\157\156\143\145")) {
goto y5u;
}
$MC = new Miniorange_Password_2Factor_Login();
$MC->mo2fa_pass2login(esc_url_raw($_POST["\x72\145\144\x69\x72\x65\143\164\x5f\x74\157"]), sanitize_text_field($_POST["\x73\145\x73\163\151\157\x6e\x5f\151\x64"]));
exit;
goto ng0;
y5u:
$wX = new WP_Error();
$wX->add("\x65\155\160\x74\x79\137\x75\x73\x65\x72\156\x61\x6d\x65", "\x3c\163\164\162\x6f\x6e\147\76" . __("\105\x52\122\117\x52", "\155\x69\156\151\157\x72\x61\x6e\147\145\x2d\x32\x2d\146\141\x63\x74\157\x72\55\x61\x75\164\150\145\156\164\x69\x63\141\x74\151\x6f\x6e") . "\74\x2f\163\x74\x72\157\x6e\x67\76\72\40" . __("\111\156\x76\x61\154\x69\144\40\122\145\161\x75\x65\163\164\x2e", "\x6d\151\x6e\x69\x6f\162\141\156\x67\x65\x2d\62\x2d\x66\141\x63\164\x6f\x72\x2d\x61\165\164\x68\x65\156\x74\151\143\x61\x74\151\157\x6e"));
return $wX;
ng0:
}
function mo2f_use_backup_codes($HN)
{
$T7 = sanitize_text_field($HN["\x6d\x69\x6e\x69\x6f\162\141\x6e\x67\145\137\142\141\x63\153\x75\x70\x5f\156\x6f\156\x63\x65"]);
if (!wp_verify_nonce($T7, "\x6d\x69\x6e\151\157\x72\141\x6e\x67\145\55\x32\x2d\146\141\x63\x74\157\x72\x2d\142\x61\143\153\x75\160\x2d\x6e\x6f\156\143\145")) {
goto ssH;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["\x73\x65\x73\x73\151\x6f\156\x5f\151\144"]) ? sanitize_text_field($HN["\x73\x65\163\x73\151\157\156\x5f\151\144"]) : null;
$current_user = MO2f_Utility::getUserFromSessionId($dj);
$kO = isset($HN["\162\145\144\x69\162\145\x63\x74\x5f\164\x6f"]) ? esc_url_raw($HN["\x72\x65\x64\x69\162\145\x63\x74\137\x74\x6f"]) : null;
$oR = __("\x50\x6c\x65\141\163\145\x20\160\162\x6f\166\151\144\145\40\171\157\165\162\x20\x62\x61\x63\x6b\165\x70\40\143\x6f\144\145\x73\56", "\x6d\151\156\x69\x6f\x72\141\x6e\x67\145\x2d\x32\55\x66\141\x63\164\x6f\162\x2d\141\x75\x74\150\145\156\x74\x69\143\141\164\151\157\x6e");
$o4 = "\115\x4f\137\62\137\106\101\x43\124\x4f\x52\x5f\x43\110\101\114\114\x45\x4e\107\x45\x5f\102\101\x43\x4b\x55\120";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto DI8;
ssH:
$wX = new WP_Error();
$wX->add("\x65\x6d\x70\164\171\137\165\x73\145\162\156\x61\155\x65", "\74\163\164\162\x6f\x6e\x67\x3e" . __("\x45\122\122\117\122", "\x6d\151\156\151\x6f\x72\141\x6e\x67\x65\55\62\x2d\146\141\x63\164\157\x72\55\141\165\164\150\x65\156\x74\x69\143\141\164\x69\x6f\x6e") . "\74\x2f\163\x74\162\x6f\156\147\x3e\72\40" . __("\111\156\166\x61\154\x69\x64\40\122\x65\161\165\x65\163\x74\56", "\x6d\x69\156\x69\x6f\162\x61\x6e\147\x65\55\x32\x2d\146\x61\143\x74\157\x72\55\141\165\x74\150\145\x6e\164\x69\143\x61\164\151\157\x6e"));
return $wX;
DI8:
}
function check_backup_codes_validation($HN)
{
global $aq, $ce;
$T7 = sanitize_text_field($HN["\155\151\156\151\157\162\x61\x6e\x67\145\137\x76\x61\154\151\x64\x61\x74\145\x5f\142\141\143\153\165\160\x5f\x6e\x6f\x6e\143\145"]);
$dj = isset($HN["\163\145\163\x73\x69\x6f\x6e\137\x69\144"]) ? sanitize_text_field($HN["\163\145\163\x73\151\157\x6e\137\151\x64"]) : null;
if (!wp_verify_nonce($T7, "\155\151\156\x69\157\162\x61\156\147\145\x2d\62\55\x66\x61\143\164\x6f\162\x2d\x76\141\154\151\144\141\x74\x65\x2d\x62\141\143\153\165\160\55\156\x6f\x6e\143\145")) {
goto WIv;
}
$this->miniorange_pass2login_start_session();
$uM = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\x32\x66\x5f\143\165\162\162\x65\156\164\137\165\x73\145\x72\137\151\144");
$kO = isset($HN["\x72\145\x64\x69\x72\x65\143\164\137\x74\x6f"]) ? esc_url_raw($HN["\x72\x65\144\x69\162\145\143\x74\x5f\164\157"]) : null;
if (isset($uM)) {
goto BJy;
}
$this->remove_current_activity($dj);
return new WP_Error("\x69\156\x76\x61\x6c\151\x64\x5f\x75\x73\145\162\x6e\141\155\x65", "\74\x73\x74\162\x6f\156\x67\x3e" . __("\105\x52\x52\117\122", "\155\151\x6e\151\157\162\141\156\147\x65\x2d\62\x2d\146\141\x63\x74\157\162\55\141\165\164\150\145\x6e\164\151\143\141\x74\x69\157\x6e") . "\74\x2f\x73\164\162\157\x6e\x67\76\72\x20" . __("\120\154\145\x61\x73\145\x20\x74\x72\171\x20\141\x67\141\151\x6e\x2e\x2e", "\155\151\156\151\x6f\162\141\156\147\145\x2d\62\x2d\146\x61\143\164\x6f\162\55\x61\165\x74\150\145\x6e\x74\151\x63\141\164\151\x6f\x6e"));
goto und;
BJy:
if (!MO2f_Utility::mo2f_check_empty_or_null($HN["\x6d\x6f\62\146\x5f\x62\141\143\x6b\165\160\137\x63\157\x64\x65"])) {
goto gFq;
}
$oR = __("\120\154\x65\x61\x73\x65\40\160\162\x6f\166\151\x64\x65\x20\142\x61\x63\x6b\x75\x70\x20\x63\157\x64\145\56", "\x6d\x69\x6e\151\x6f\x72\x61\x6e\x67\x65\55\x32\x2d\x66\x61\143\164\157\x72\55\x61\x75\x74\x68\x65\x6e\x74\x69\x63\x61\x74\x69\x6f\156");
$o4 = "\x4d\117\137\62\137\106\x41\103\x54\117\122\137\103\x48\101\114\x4c\x45\x4e\107\105\137\102\x41\x43\x4b\x55\120";
MO2f_Utility::mo2f_debug_file("\116\157\40\x62\141\143\153\165\x70\40\143\x6f\144\x65\x20\x70\x72\x6f\166\x69\x64\x65\144\x20" . "\125\163\x65\x72\x5f\111\120\55" . $ce->get_client_ip() . "\x20\125\x73\145\162\137\x49\144\55" . $uM);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
gFq:
$ti = get_user_meta($uM, "\155\157\62\x66\137\142\x61\x63\153\165\160\137\x63\157\144\x65\x73", true);
$ka = sanitize_text_field($HN["\155\x6f\62\146\x5f\x62\x61\x63\x6b\165\160\137\143\x6f\x64\145"]);
$ka = md5($ka);
if (!empty($ti)) {
goto kvF;
}
$oR = __("\124\x68\145\x72\145\40\x61\x72\x65\40\x6e\157\x20\x63\x6f\144\x65\163\x20\154\x65\x66\164\x2e", "\155\x69\156\151\157\162\141\156\x67\145\x2d\62\55\x66\141\143\x74\157\x72\55\141\165\x74\x68\145\156\164\x69\x63\x61\164\x69\x6f\x6e");
$o4 = "\115\117\137\x32\137\106\101\x43\124\x4f\x52\x5f\x43\x48\x41\x4c\114\x45\x4e\107\105\x5f\x42\101\x43\x4b\x55\120";
MO2f_Utility::mo2f_debug_file("\116\157\40\142\x61\143\x6b\165\x70\x20\x63\x6f\x64\x65\163\40\x6c\x65\x66\x74\x20" . "\x55\163\145\x72\x5f\111\x50\55" . $ce->get_client_ip() . "\x20\x55\163\x65\x72\137\111\144\55" . $uM);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto cWT;
kvF:
if (in_array($ka, $ti)) {
goto Xmu;
}
$oR = __("\x54\x68\x65\x20\143\x6f\144\x65\163\40\171\157\x75\x20\x68\141\x76\145\40\160\162\157\x76\151\x64\145\144\40\x61\x72\145\x20\145\x69\164\x68\x65\x72\x20\x65\170\160\x69\162\145\144\40\157\x72\40\151\156\143\157\x72\162\145\x63\164\56", "\x6d\151\x6e\151\x6f\x72\141\156\147\145\55\x32\x2d\146\x61\x63\x74\157\x72\55\x61\165\x74\x68\145\156\x74\151\x63\141\164\151\x6f\x6e");
$o4 = "\115\x4f\x5f\62\137\x46\x41\x43\x54\117\122\x5f\103\x48\x41\x4c\x4c\x45\116\107\x45\137\102\x41\103\x4b\125\x50";
MO2f_Utility::mo2f_debug_file("\111\156\166\x61\x6c\151\144\40\142\x61\143\x6b\165\160\40\143\x6f\x64\x65\163\x20" . "\x55\163\145\x72\137\x49\x50\55" . $ce->get_client_ip() . "\x20\125\x73\x65\162\x5f\x49\x64\55" . $uM);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto YB3;
Xmu:
foreach ($ti as $Yt => $kB) {
if (!($kB == $ka)) {
goto yOc;
}
unset($ti[$Yt]);
update_user_meta($uM, "\x6d\157\x32\x66\x5f\142\x61\x63\x6b\x75\160\x5f\x63\157\x64\145\x73", $ti);
yOc:
bT1:
}
UA8:
MO2f_Utility::mo2f_debug_file("\x4c\157\147\147\x65\144\x20\x69\x6e\x20\163\165\143\143\x65\163\163\146\x75\154\x6c\x79\40" . "\125\163\x65\x72\x5f\x49\x50\x2d" . $ce->get_client_ip() . "\x20\125\163\x65\162\137\x49\144\55" . $uM);
$aq->update_user_details($uM, array("\x6d\157\x32\146\x5f\x63\157\156\x66\x69\147\165\x72\145\x64\137\62\106\x41\x5f\x6d\x65\164\150\x6f\x64" => ''));
$aq->delete_user_details($uM);
$aq->insert_user($uM);
$aq->update_user_details($uM, array("\x6d\x6f\137\62\x66\x61\143\x74\157\162\x5f\165\x73\145\162\137\x72\x65\147\151\163\164\x72\x61\164\151\x6f\x6e\137\x73\x74\x61\x74\165\163" => "\x4d\117\x5f\62\137\106\x41\x43\124\x4f\122\137\111\116\x49\x54\111\x41\114\x49\x5a\105\x5f\x54\x57\x4f\137\x46\101\103\x54\117\x52", "\165\x73\x65\162\137\162\x65\x67\151\x73\164\x72\141\x74\151\157\x6e\137\x77\x69\x74\150\137\155\151\156\151\157\162\x61\156\x67\x65" => "\123\x55\x43\103\105\x53\123"));
$oR = "\120\154\x65\x61\163\145\40\143\157\x6e\x66\151\x67\x75\162\145\x20\x79\x6f\x75\162\x20\x32\106\101\x20\141\147\x61\x69\x6e\40\x73\157\x20\x74\150\x61\164\40\171\157\165\40\143\141\156\x20\x61\166\x6f\x69\x64\x20\142\145\x69\156\x67\x20\x6c\x6f\143\x6b\145\x64\40\157\165\164\x2e";
$o4 = "\115\x4f\137\x32\x5f\106\x41\x43\124\x4f\122\x5f\x50\x52\x4f\x4d\120\124\x5f\x55\123\x45\x52\137\106\117\x52\x5f\62\106\x41\x5f\115\105\x54\110\x4f\104\123";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
YB3:
cWT:
und:
goto IXe;
WIv:
$wX = new WP_Error();
$wX->add("\x65\x6d\160\x74\171\x5f\x75\163\x65\x72\x6e\x61\155\145", "\74\x73\x74\162\x6f\156\x67\76" . __("\105\122\122\117\122", "\x6d\151\156\x69\x6f\162\x61\x6e\x67\x65\x2d\62\x2d\x66\x61\143\164\157\162\55\141\165\x74\x68\x65\156\x74\151\143\141\x74\151\157\156") . "\x3c\x2f\x73\x74\162\157\x6e\x67\x3e\72\x20" . __("\111\x6e\x76\x61\154\x69\x64\x20\x52\x65\x71\x75\145\x73\164\56", "\x6d\x69\156\151\x6f\x72\141\156\x67\x65\x2d\62\x2d\x66\141\143\x74\x6f\x72\55\x61\x75\164\x68\145\156\x74\151\143\141\164\151\x6f\156"));
return $wX;
IXe:
}
function mo2f_create_backup_codes()
{
$T7 = sanitize_text_field($_POST["\155\151\156\x69\157\162\141\x6e\x67\x65\x5f\x67\145\156\x65\162\141\164\x65\137\142\x61\143\153\x75\160\x5f\x6e\157\x6e\143\x65"]);
if (!wp_verify_nonce($T7, "\x6d\151\156\x69\157\162\141\156\x67\145\55\62\x2d\x66\141\x63\164\x6f\x72\x2d\147\x65\156\x65\162\x61\x74\x65\55\x62\x61\x63\153\x75\160\x2d\x6e\157\x6e\x63\x65")) {
goto SAE;
}
global $aq;
$kO = esc_url_raw($_POST["\x72\145\144\x69\x72\x65\143\x74\x5f\x74\157"]);
$d0 = sanitize_text_field($_POST["\x73\145\x73\x73\151\x6f\x6e\137\151\x64"]);
$IZ = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($d0, "\155\157\62\146\137\x63\x75\x72\x72\145\x6e\x74\137\x75\x73\145\162\x5f\x69\x64");
$tI = MO2f_Utility::mo_2f_generate_backup_codes();
$Nk = MO2f_Utility::mo2f_get_codes_hash($tI);
$yR = '';
$c9 = 0;
Z4o:
if (!($c9 < 5)) {
goto KZl;
}
$h2 = $tI[$c9];
$yR .= $h2;
if (!($c9 != 4)) {
goto Rbe;
}
$yR .= "\x2c";
Rbe:
B3d:
$c9++;
goto Z4o;
KZl:
update_user_meta($IZ, "\x6d\x6f\x32\x66\x5f\x62\141\143\x6b\x75\160\137\x63\x6f\x64\145\163", $Nk);
$Yt = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\62\x66\137\145\x6e\143\162\x79\160\164\151\x6f\156\x5f\153\145\x79");
$Lg = MO2f_Utility::encrypt_data($yR, $Yt);
update_user_meta($IZ, "\143\x68\x71\167\145\164\143\163\144\x76\156\x76\x64", $Lg);
$fx = $aq->get_user_detail("\155\x6f\62\146\137\x75\x73\145\x72\137\145\155\x61\151\154", $IZ);
if (!empty($fx)) {
goto MS_;
}
$OZ = get_user_by("\151\144", $IZ);
$fx = $OZ->user_email;
MS_:
$xo = MO2f_Utility::mo2f_email_backup_codes($tI, $fx);
if ($xo) {
goto fYY;
}
$oR = __("\40\111\146\x20\171\x6f\165\x20\150\x61\x76\145\x6e\x27\164\40\x63\x6f\x6e\146\x69\147\x75\x72\145\144\40\123\x4d\124\x50\x2c\40\160\x6c\x65\x61\x73\x65\40\x73\145\164\40\171\157\x75\162\x20\x53\x4d\124\x50\x20\164\x6f\40\147\145\x74\40\164\x68\x65\x20\x62\141\143\x6b\165\160\40\143\x6f\144\x65\x73\40\x6f\x6e\40\145\155\x61\x69\154\56", "\155\151\156\151\x6f\162\x61\156\x67\145\x2d\x32\55\x66\x61\143\x74\157\x72\x2d\x61\165\164\150\x65\156\x74\151\143\x61\164\151\x6f\x6e");
update_user_meta($IZ, "\155\x6f\137\142\x61\x63\153\x75\x70\137\143\157\144\x65\x5f\x67\145\156\145\162\141\164\x65\144", 0);
goto LLS;
fYY:
$oR = __("\101\156\x20\x65\x6d\x61\151\x6c\x20\143\x6f\x6e\x74\x61\151\156\x69\x6e\147\40\164\x68\x65\x20\x62\141\x63\x6b\x75\x70\x20\x63\157\x64\x65\163\x20\150\x61\163\x20\142\145\x65\156\40\x73\x65\156\164\56\40\120\x6c\x65\141\163\x65\x20\143\154\151\143\x6b\x20\x6f\x6e\40\125\x73\x65\x20\142\141\x63\153\x75\x70\x20\143\x6f\x64\x65\x73\x20\x74\x6f\40\x6c\x6f\x67\x69\156\x20\x75\x73\x69\x6e\x67\x20\x74\150\145\40\142\141\x63\x6b\x75\x70\40\143\157\x64\145\163\56", "\155\x69\156\x69\157\162\x61\x6e\147\x65\55\62\55\x66\x61\x63\164\157\162\55\x61\165\164\x68\x65\x6e\x74\x69\143\141\164\x69\157\156");
update_user_meta($IZ, "\x6d\x6f\137\142\141\x63\x6b\x75\x70\x5f\143\157\144\x65\x5f\147\145\x6e\x65\x72\141\164\145\x64", 1);
LLS:
$o4 = sanitize_text_field($_POST["\154\x6f\x67\151\156\x5f\x73\x74\x61\x74\x75\163"]);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto bAE;
SAE:
$wX = new WP_Error();
$wX->add("\145\x6d\160\164\x79\137\x75\163\x65\162\x6e\x61\x6d\x65", "\74\x73\x74\162\x6f\156\147\x3e" . __("\x45\x52\122\x4f\x52", "\x6d\x69\156\x69\x6f\162\141\156\147\145\55\62\55\x66\x61\x63\164\157\x72\x2d\141\165\164\x68\x65\156\164\151\143\x61\164\151\157\156") . "\74\57\163\x74\x72\157\156\147\76\x3a\40" . __("\x49\x6e\166\141\154\151\x64\40\x52\x65\x71\x75\x65\x73\x74\56", "\x6d\x69\x6e\x69\157\x72\x61\x6e\x67\145\55\62\55\x66\x61\x63\164\157\162\x2d\x61\165\164\x68\x65\x6e\x74\x69\x63\141\x74\151\157\x6e"));
return $wX;
bAE:
}
function mo2f_register_user_inline($vj, $kO, $d0)
{
global $ce;
$oR = '';
$o4 = "\115\x4f\x5f\x32\137\x46\101\x43\x54\x4f\122\137\120\x52\x4f\x4d\120\124\137\x46\117\x52\137\125\123\x45\x52\137\122\x45\x47\137\x4f\124\120";
$qf = new Two_Factor_Setup();
if (MO2F_IS_ONPREM) {
goto dft;
}
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
goto PS7;
dft:
$Kk["\163\164\x61\x74\165\x73"] = "\125\x53\x45\122\137\116\117\124\137\x46\117\125\116\x44";
PS7:
$bR = MO2f_Utility::mo2f_get_transient($d0, "\155\x6f\62\146\137\143\x75\x72\x72\x65\x6e\164\137\165\x73\x65\162\137\151\144");
$current_user = get_user_by("\x69\x64", $bR);
$Cr = $current_user->ID;
global $aq;
if (json_last_error() == JSON_ERROR_NONE) {
goto Ipc;
}
$oR = __("\x45\162\162\157\x72\x20\x6f\x63\143\165\x72\162\145\x64\40\167\150\151\154\x65\40\162\145\147\151\163\164\145\x72\151\x6e\147\40\x74\150\x65\x20\x75\x73\x65\162\x2e\x20\120\x6c\x65\141\x73\145\x20\x74\162\x79\x20\x61\147\141\151\156\56", "\155\x69\x6e\151\157\x72\141\x6e\147\x65\55\x32\x2d\146\x61\143\164\157\x72\x2d\141\x75\164\x68\145\156\164\151\x63\141\164\x69\157\x6e");
$o4 = "\115\117\137\x32\x5f\x46\101\103\x54\117\x52\137\120\122\117\115\x50\x54\x5f\106\x4f\x52\137\x55\123\x45\x52\137\x52\105\107\137\x4f\x54\x50";
goto OLe;
Ipc:
if ($Kk["\x73\164\141\164\x75\x73"] == "\105\x52\122\117\122") {
goto Dft;
}
if (strcasecmp($Kk["\163\164\141\164\165\163"], "\x55\123\x45\122\x5f\106\117\125\x4e\104") == 0) {
goto ij4;
}
if (strcasecmp($Kk["\x73\164\x61\164\x75\163"], "\125\123\x45\x52\137\116\117\x54\x5f\x46\x4f\x55\116\104") == 0) {
goto cah;
}
$oR = __("\105\162\162\x6f\162\x20\x6f\143\x63\165\162\x72\x65\x64\x20\167\150\x69\154\x65\40\x72\145\x67\x69\x73\x74\145\x72\x69\156\147\x20\164\x68\x65\x20\165\163\145\162\56\40\120\154\145\141\163\145\40\164\x72\171\40\x61\147\x61\x69\x6e\x2e", "\x6d\x69\156\x69\157\x72\x61\156\147\x65\x2d\x32\55\x66\141\143\164\x6f\x72\55\x61\165\164\x68\x65\156\x74\151\x63\x61\164\151\157\156");
$o4 = "\115\117\137\62\x5f\x46\x41\x43\x54\x4f\122\137\120\122\x4f\x4d\x50\124\x5f\106\117\x52\x5f\x55\x53\x45\122\137\x52\105\x47\x5f\117\124\x50";
goto dY7;
ij4:
$aq->update_user_details($Cr, array("\x75\x73\145\x72\x5f\x72\145\147\x69\163\x74\162\141\164\x69\x6f\x6e\137\x77\x69\164\x68\137\155\151\x6e\151\157\162\x61\x6e\x67\x65" => "\123\125\x43\103\x45\123\x53", "\155\157\x5f\x32\x66\x61\x63\164\x6f\162\137\x75\163\145\162\137\x72\145\x67\151\x73\x74\162\x61\164\x69\x6f\x6e\137\x73\164\141\x74\x75\163" => "\115\117\137\62\x5f\x46\x41\103\x54\117\122\137\111\x4e\111\124\x49\x41\114\x49\x5a\x45\x5f\x54\x57\117\x5f\106\101\103\x54\117\122", "\155\x6f\x32\x66\137\165\x73\x65\x72\137\x65\x6d\141\x69\x6c" => $vj));
$o4 = "\x4d\x4f\x5f\x32\x5f\106\101\x43\x54\117\122\137\120\x52\x4f\x4d\120\x54\x5f\x55\123\105\122\x5f\106\x4f\122\137\62\106\101\x5f\115\x45\124\110\x4f\104\123";
goto dY7;
cah:
if (MO2F_IS_ONPREM) {
goto fBQ;
}
$CG = json_decode($qf->mo_create_user($current_user, $vj), true);
goto fML;
fBQ:
update_user_meta($Cr, "\143\165\162\x72\x65\x6e\x74\x4d\145\x74\150\157\x64", "\105\155\x61\151\x6c\40\x56\145\x72\151\146\x69\143\x61\164\x69\157\x6e");
$CG["\x73\164\x61\164\165\x73"] = "\x53\125\x43\103\x45\x53\123";
fML:
if (json_last_error() == JSON_ERROR_NONE) {
goto HLN;
}
$oR = __("\x45\162\x72\157\x72\40\x6f\x63\x63\x75\162\x72\145\144\x20\167\150\x69\x6c\145\x20\162\145\x67\x69\x73\164\145\162\x69\x6e\147\x20\164\x68\145\40\165\163\145\x72\x2e\40\x50\154\x65\x61\163\145\x20\164\x72\x79\x20\x61\147\141\x69\156\40\157\162\x20\143\x6f\156\164\x61\x63\164\x20\171\x6f\165\162\x20\141\144\155\151\156\56", "\155\x69\156\x69\x6f\162\141\156\x67\x65\x2d\x32\55\146\x61\x63\x74\x6f\162\x2d\141\165\x74\150\145\x6e\x74\151\x63\x61\x74\151\x6f\x6e");
$o4 = "\x4d\117\137\62\137\106\x41\x43\x54\117\x52\x5f\x50\122\x4f\115\120\x54\137\x46\117\x52\137\x55\x53\x45\x52\x5f\122\x45\x47\x5f\x4f\x54\120";
goto MRU;
HLN:
if ($CG["\x73\x74\x61\x74\x75\163"] == "\105\x52\122\x4f\122") {
goto t1O;
}
if (strcasecmp($CG["\x73\164\141\164\165\x73"], "\123\125\x43\x43\105\123\123") == 0) {
goto Tro;
}
$oR = __("\105\162\162\x6f\x72\40\157\143\143\x75\x72\x72\x65\x64\x20\x77\150\x69\x6c\x65\x20\x72\145\x67\x69\x73\164\x65\162\151\156\x67\40\164\x68\x65\40\x75\163\x65\162\56\40\x50\154\145\x61\163\x65\x20\x74\x72\171\40\141\x67\x61\x69\156\56", "\x6d\151\156\x69\157\162\141\156\147\145\x2d\x32\x2d\x66\141\143\x74\157\x72\55\x61\165\x74\150\145\x6e\x74\151\x63\141\164\x69\x6f\x6e");
$o4 = "\x4d\117\137\x32\137\x46\101\103\124\117\x52\x5f\120\122\117\x4d\x50\x54\137\x46\117\122\137\125\x53\105\122\x5f\122\x45\107\x5f\117\x54\x50";
goto oly;
Tro:
$aq->update_user_details($Cr, array("\165\163\x65\162\137\162\x65\x67\151\163\164\x72\141\164\x69\157\156\137\167\151\164\150\137\155\151\x6e\151\x6f\162\x61\x6e\x67\145" => "\123\125\x43\x43\105\x53\123", "\155\157\137\x32\x66\141\x63\x74\x6f\x72\137\x75\163\x65\162\137\162\x65\x67\x69\163\164\x72\141\x74\151\157\156\x5f\x73\x74\x61\164\x75\x73" => "\115\117\x5f\62\x5f\x46\x41\x43\124\117\x52\x5f\x49\x4e\x49\124\x49\x41\114\x49\x5a\x45\x5f\x54\127\x4f\x5f\x46\x41\103\124\x4f\x52", "\155\157\62\x66\137\x75\163\x65\x72\137\145\155\x61\151\154" => $vj));
$vj = $aq->get_user_detail("\155\157\x32\x66\x5f\165\x73\x65\x72\137\145\155\x61\x69\x6c", $Cr);
$qf->mo2f_update_userinfo($vj, "\x4f\x55\124\40\117\106\x20\102\x41\116\x44\40\x45\x4d\x41\x49\114", null, null, null);
$F3 = '';
$o4 = "\115\x4f\x5f\62\x5f\x46\101\103\124\x4f\122\137\120\122\117\115\x50\x54\137\x55\x53\105\x52\x5f\106\117\122\x5f\62\106\101\x5f\115\x45\x54\x48\117\104\123";
oly:
goto hiP;
t1O:
$oR = $CG["\x6d\x65\x73\163\141\x67\x65"];
$o4 = "\115\x4f\137\x32\137\106\x41\103\x54\x4f\x52\x5f\x50\122\117\115\120\124\x5f\x46\x4f\122\137\125\123\x45\x52\x5f\x52\x45\x47\x5f\x4f\x54\x50";
hiP:
MRU:
dY7:
goto qt6;
Dft:
$oR = Mo2fConstants::langTranslate($Kk["\x6d\x65\x73\x73\141\x67\145"]);
$o4 = "\x4d\117\x5f\x32\x5f\106\101\x43\124\117\x52\x5f\x50\122\117\115\x50\124\137\106\x4f\122\x5f\125\x53\105\x52\x5f\122\105\x47\x5f\117\124\x50";
qt6:
OLe:
delete_user_meta($Cr, "\155\x6f\x5f\x32\146\141\137\166\145\162\x69\x66\x79\137\157\x74\160\137\143\x72\x65\x61\x74\145\x5f\141\x63\x63\x6f\x75\x6e\x74");
MO2f_Utility::mo2f_debug_file("\125\163\145\x72\40\x70\162\157\x6d\160\x74\145\144\40\x66\x6f\x72\40\x69\156\154\151\x6e\145\40\162\x65\147\151\x73\x74\x72\x61\164\x69\157\156\x20" . "\x55\x73\x65\162\x5f\x49\x50\x2d" . $ce->get_client_ip() . "\x20\125\163\145\162\x5f\111\x64\55" . $current_user->ID . "\40\x45\155\x61\x69\154\x2d" . $current_user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
}
function inline_get_current_customer($bR, $vj, $q9, $kO, $dj)
{
global $aq;
$eO = new MocURL();
$CG = $eO->get_customer_key($vj, $q9);
$GF = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto t42;
}
$aq->update_user_details($bR, array("\155\x6f\137\62\146\141\x63\x74\x6f\x72\137\165\163\x65\162\x5f\162\x65\x67\151\163\164\162\x61\x74\x69\x6f\156\x5f\163\x74\141\164\165\163" => "\115\x4f\x5f\62\x5f\x46\x41\x43\x54\x4f\122\x5f\126\x45\x52\111\x46\x59\x5f\x43\125\x53\x54\x4f\115\105\x52"));
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("\101\103\103\x4f\x55\116\x54\137\x45\x58\111\123\x54\x53");
$Um = "\115\x4f\137\x32\137\x46\101\103\x54\x4f\122\137\120\x52\117\x4d\120\x54\137\x55\123\105\x52\x5f\x46\x4f\x52\x5f\62\x46\x41\137\x4d\105\x54\110\117\104\x53";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
goto qF2;
t42:
if (!isset($GF["\160\150\x6f\156\x65"])) {
goto SBY;
}
update_site_option("\155\157\137\167\x70\156\163\137\141\x64\x6d\151\156\x5f\x70\150\157\x6e\145", $GF["\x70\150\x6f\156\x65"]);
$aq->update_user_details($bR, array("\155\x6f\x32\x66\137\165\x73\145\162\137\x70\150\157\156\145" => $GF["\160\x68\x6f\x6e\145"]));
SBY:
update_site_option("\155\157\x32\x66\x5f\145\155\141\x69\x6c", $vj);
$this->inline_save_success_customer_config($bR, $vj, $GF["\x69\144"], $GF["\141\160\x69\x4b\145\x79"], $GF["\164\157\x6b\145\156"], $GF["\x61\x70\x70\x53\145\x63\x72\x65\164"]);
$Jb = MoWpnsMessages::mo2fa_wpns_showMessage("\122\x45\x47\137\x53\x55\103\x43\x45\x53\x53");
$Um = "\x4d\117\137\62\137\x46\x41\x43\124\117\122\137\x50\122\x4f\x4d\120\x54\137\x55\123\105\x52\x5f\x46\117\122\x5f\62\x46\x41\137\115\105\x54\x48\117\104\123";
$this->miniorange_pass2login_form_fields($Um, $Jb, $kO, null, $dj);
qF2:
}
function inline_save_success_customer_config($bR, $vj, $IZ, $fY, $j_, $mI)
{
global $aq;
update_site_option("\x6d\x6f\x32\146\x5f\143\165\163\x74\x6f\155\145\x72\x4b\145\x79", $IZ);
update_site_option("\155\x6f\62\146\x5f\x61\160\151\137\153\145\x79", $fY);
update_site_option("\x6d\x6f\62\x66\137\143\165\163\x74\x6f\x6d\x65\x72\x5f\164\157\153\145\x6e", $j_);
update_site_option("\x6d\157\x32\146\x5f\x61\x70\x70\x5f\x73\x65\x63\162\x65\164", $mI);
update_site_option("\x6d\x6f\x5f\x77\x70\x6e\x73\x5f\145\x6e\x61\142\x6c\145\x5f\154\157\x67\137\162\x65\x71\x75\145\163\x74\163", true);
update_site_option("\155\x6f\x32\146\x5f\x6d\151\156\x69\157\x72\141\x6e\x67\x65\137\141\x64\x6d\151\x6e", $IZ);
update_site_option("\155\x6f\137\62\x66\x61\x63\164\x6f\162\x5f\141\144\x6d\x69\x6e\137\162\x65\x67\x69\x73\x74\x72\141\x74\x69\x6f\x6e\x5f\x73\x74\x61\x74\165\163", "\x4d\x4f\137\x32\137\106\x41\103\x54\117\122\137\103\x55\123\x54\x4f\x4d\x45\122\x5f\122\x45\107\111\123\x54\105\x52\105\x44\137\123\125\x43\x43\x45\123\x53");
update_site_option("\155\x6f\x5f\62\x66\x61\143\x74\157\162\137\x75\163\145\x72\x5f\162\x65\x67\151\x73\x74\x72\141\x74\x69\x6f\156\137\x73\x74\x61\164\x75\x73", "\x4d\117\137\x32\x5f\106\101\x43\124\x4f\122\137\x50\x4c\125\107\x49\x4e\137\123\x45\124\x54\111\116\107\123");
$aq->update_user_details($bR, array("\155\x6f\x32\x66\137\x75\x73\145\162\137\145\155\141\151\x6c" => $vj));
}
function mo2f_inline_validate_otp()
{
if (!isset($_POST["\155\151\x6e\x69\x6f\x72\x61\x6e\x67\x65\137\x69\156\154\x69\x6e\x65\x5f\x76\141\x6c\151\144\x61\164\x65\x5f\157\x74\160\x5f\156\157\x6e\143\x65"])) {
goto T8Z;
}
$T7 = sanitize_text_field($_POST["\155\151\156\x69\x6f\x72\x61\x6e\147\145\x5f\151\156\154\x69\x6e\x65\137\x76\141\154\x69\x64\141\164\145\137\x6f\164\x70\x5f\156\x6f\x6e\x63\x65"]);
if (!wp_verify_nonce($T7, "\155\151\x6e\151\157\162\141\156\x67\145\55\x32\x2d\146\141\143\x74\157\162\x2d\151\156\154\x69\156\145\x2d\x76\x61\154\x69\x64\141\164\x65\x2d\x6f\164\160\55\x6e\x6f\x6e\x63\x65")) {
goto Ovw;
}
global $aq;
$this->miniorange_pass2login_start_session();
$wp = '';
$o4 = "\x4d\x4f\x5f\62\x5f\x46\x41\x43\x54\117\122\137\120\x52\117\x4d\x50\124\x5f\x55\123\105\122\x5f\106\x4f\x52\137\x32\x46\x41\137\115\105\x54\x48\117\104\123";
$oR = '';
$dj = isset($_POST["\163\145\x73\163\151\157\156\137\151\x64"]) ? sanitize_text_field($_POST["\x73\x65\163\x73\151\157\156\137\151\144"]) : null;
$kO = isset($_POST["\x72\145\144\x69\x72\145\143\164\137\x74\157"]) ? esc_url_raw($_POST["\162\145\x64\151\162\145\x63\x74\x5f\164\157"]) : null;
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["\x6f\x74\160\137\x74\x6f\x6b\x65\x6e"])) {
goto B9L;
}
$wp = sanitize_text_field($_POST["\157\164\160\137\x74\157\153\x65\156"]);
goto h1H;
B9L:
$oR = __("\x41\x6c\154\40\164\150\x65\x20\x66\151\x65\154\x64\x73\x20\141\x72\145\x20\x72\145\x71\x75\151\162\x65\x64\x2e\x20\x50\x6c\145\141\163\x65\40\145\x6e\x74\x65\x72\40\166\141\154\x69\144\x20\145\156\164\162\151\145\163\x2e", "\155\151\156\x69\x6f\162\x61\156\x67\x65\55\x32\55\x66\x61\x63\x74\x6f\162\x2d\x61\165\164\x68\145\156\164\x69\143\x61\x74\151\157\156");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj, null);
h1H:
$current_user = MO2f_Utility::mo2f_get_transient($dj, "\x6d\157\62\x66\x5f\143\165\162\162\145\156\164\x5f\x75\x73\145\162\137\x69\x64");
$Jj = $aq->get_user_detail("\x6d\x6f\x32\146\x5f\143\x6f\x6e\146\151\x67\165\x72\x65\x64\137\x32\x46\101\x5f\155\x65\x74\x68\x6f\x64", $current_user);
if (!($Jj == "\117\124\120\40\117\x76\145\x72\40\124\x65\x6c\x65\x67\x72\141\155")) {
goto zrJ;
}
$dm = $current_user;
$lw = $wp;
$Je = get_user_meta($dm, "\155\157\62\x66\x5f\x6f\164\x70\137\x74\157\153\x65\x6e", true);
$NB = get_user_meta($dm, "\x6d\157\x32\x66\x5f\x74\145\154\x65\147\x72\141\155\137\x74\x69\155\x65", true);
$OL = time() - 300;
$NB = (int) $NB;
if ($lw == $Je) {
goto UcA;
}
$oR = __("\x49\x6e\166\141\154\x69\144\40\117\124\120\x2e\40\120\x6c\145\141\x73\145\x20\x74\x72\x79\x20\141\147\x61\x69\x6e\x2e", "\155\151\x6e\x69\x6f\162\x61\x6e\x67\x65\x2d\62\55\146\141\x63\x74\157\162\55\x61\x75\x74\x68\x65\x6e\164\x69\143\x61\x74\151\x6f\x6e");
goto fFN;
UcA:
if ($OL < $NB) {
goto Hie;
}
delete_user_meta($dm, "\155\x6f\x32\146\x5f\157\x74\x70\137\164\157\x6b\x65\x6e");
delete_user_meta($dm, "\155\157\x32\146\x5f\x74\x65\154\145\147\162\x61\155\x5f\164\151\x6d\145");
$oR = __("\117\x54\x50\x20\x68\x61\x73\40\x62\x65\x65\156\x20\145\170\x70\151\x72\145\144\40\x70\x6c\145\x61\163\x65\x20\151\x6e\151\164\x69\x61\x74\x65\x20\141\40\156\x65\167\x20\164\x72\x61\x6e\163\141\x63\164\151\157\x6e\40\142\171\40\x63\x6c\x69\143\153\151\156\147\x20\x6f\x6e\x20\x76\x65\x72\x69\x66\x79\40\142\x75\164\164\157\156\56", "\x6d\151\x6e\151\x6f\162\x61\156\147\x65\55\x32\x2d\x66\x61\143\x74\157\x72\x2d\141\165\x74\150\145\x6e\164\151\x63\x61\164\151\157\156");
goto i8N;
Hie:
update_user_meta($dm, "\x6d\x6f\62\x66\x5f\x63\x68\141\164\x5f\151\x64", get_user_meta($dm, "\155\157\62\x66\137\164\145\x6d\x70\x5f\143\x68\141\164\111\x44", true));
delete_user_meta($dm, "\155\157\62\146\137\164\145\155\x70\x5f\x63\150\141\164\111\104");
delete_user_meta($dm, "\x6d\x6f\62\146\x5f\157\164\160\x5f\x74\157\153\145\156");
delete_user_meta($dm, "\155\x6f\62\146\137\164\x65\x6c\x65\147\162\x61\155\x5f\x74\151\155\x65");
$aq->update_user_details($dm, array("\155\157\62\x66\137\143\x6f\156\146\151\x67\165\162\x65\x64\137\x32\x46\x41\137\x6d\x65\164\x68\157\x64" => "\x4f\x54\120\40\x4f\x76\x65\x72\40\124\145\x6c\x65\147\162\141\155", "\155\157\x32\146\137\x4f\124\120\117\166\145\162\124\x65\x6c\x65\x67\x72\141\x6d\137\143\157\156\x66\x69\x67\x5f\163\x74\x61\x74\165\163" => true, "\155\157\137\62\146\141\x63\164\x6f\162\137\x75\x73\x65\x72\137\162\x65\x67\151\x73\x74\x72\x61\164\x69\157\x6e\x5f\163\164\141\164\165\x73" => "\x4d\117\x5f\x32\137\x46\101\x43\124\x4f\122\137\120\114\125\107\x49\x4e\x5f\x53\x45\x54\x54\x49\116\x47\x53"));
$o4 = "\x4d\x4f\137\62\x5f\x46\x41\x43\x54\x4f\122\x5f\123\105\x54\125\120\137\123\125\103\103\105\123\123";
i8N:
fFN:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
zrJ:
$XX = $aq->get_user_detail("\155\x6f\x32\x66\137\x75\163\145\x72\137\x70\150\x6f\x6e\145", $current_user);
$eO = new Customer_Setup();
$uM = get_user_by("\151\144", $current_user);
$CG = json_decode($eO->validate_otp_token($Jj, null, get_user_meta($current_user, "\x6d\x6f\x32\x66\x5f\164\162\x61\x6e\163\141\x63\x74\151\x6f\x6e\111\144", true), $wp, get_site_option("\155\x6f\x32\x66\x5f\143\165\x73\164\x6f\155\145\x72\x4b\145\171"), get_site_option("\x6d\157\x32\146\137\x61\x70\x69\x5f\x6b\x65\171"), $uM), true);
if ($CG["\163\164\x61\x74\165\163"] == "\x45\122\x52\117\x52") {
goto lpF;
}
if (strcasecmp($CG["\163\164\141\x74\165\163"], "\x53\x55\x43\x43\x45\x53\x53") == 0) {
goto aOU;
}
$oR = __("\x49\156\x76\141\154\x69\144\x20\x4f\124\120\x2e\40\120\x6c\x65\141\x73\145\40\164\x72\171\40\141\147\x61\151\x6e\x2e", "\155\151\x6e\x69\157\162\x61\x6e\x67\x65\x2d\62\55\146\x61\143\x74\x6f\162\55\141\x75\x74\150\x65\156\164\x69\x63\141\x74\151\x6f\x6e");
goto gZ5;
aOU:
$ca = get_user_meta($current_user, "\155\157\x32\x66\x5f\165\x73\145\x72\137\160\150\157\156\x65", true);
if (!($XX && strlen($XX) >= 4)) {
goto Ypw;
}
if (!($ca != $XX)) {
goto Sbb;
}
$aq->update_user_details($current_user, array("\x6d\x6f\142\151\154\x65\137\162\145\147\151\163\164\x72\x61\x74\x69\157\156\137\163\x74\141\164\x75\163" => false));
Sbb:
Ypw:
$vj = empty(get_user_meta($current_user, "\164\145\x6d\160\x52\x65\147\x45\155\x61\x69\154", true)) ? $aq->get_user_detail("\155\157\62\x66\137\165\163\145\x72\x5f\x65\155\141\151\154", $current_user) : get_user_meta($current_user, "\x74\x65\155\x70\122\x65\x67\105\x6d\x61\151\x6c", true);
if (!($aq->get_user_detail("\155\x6f\x32\x66\137\143\x6f\156\x66\151\147\x75\x72\x65\144\x5f\62\x46\101\137\155\145\164\150\x6f\144", $current_user) == "\x4f\124\120\x20\117\126\105\122\x20\105\x4d\101\x49\x4c") && !($aq->get_user_detail("\155\x6f\62\x66\x5f\x63\157\x6e\x66\x69\147\x75\162\145\x64\137\x32\x46\x41\x5f\155\145\164\x68\x6f\x64", $current_user) == "\117\124\120\x20\117\x76\145\162\x20\105\155\x61\x69\154")) {
goto UIw;
}
$aq->update_user_details($current_user, array("\x6d\157\62\x66\137\117\x54\x50\x4f\x56\x65\x72\105\155\x61\151\x6c\x5f\143\x6f\x6e\146\x69\147\137\x73\x74\x61\x74\165\163" => true, "\x6d\157\x32\146\137\x63\x6f\156\146\151\x67\165\x72\x65\144\x5f\x32\106\x41\x5f\x6d\x65\x74\150\x6f\x64" => "\x4f\124\x50\x20\117\166\x65\162\40\105\x6d\x61\151\x6c", "\155\157\137\x32\146\141\143\164\x6f\162\x5f\165\x73\x65\162\137\162\145\147\151\163\x74\x72\141\164\x69\157\156\137\163\164\x61\164\165\x73" => "\115\x4f\137\x32\x5f\x46\x41\x43\124\x4f\122\137\x50\114\125\107\x49\x4e\137\123\x45\x54\124\111\x4e\107\123", "\155\x6f\x32\146\137\x75\163\x65\x72\x5f\145\x6d\x61\x69\x6c" => $vj));
goto x7x;
UIw:
$aq->update_user_details($current_user, array("\x6d\x6f\62\x66\137\117\124\x50\x4f\x76\x65\x72\123\115\x53\x5f\x63\157\x6e\146\x69\x67\x5f\163\164\141\164\165\x73" => true, "\155\x6f\62\x66\x5f\x75\x73\x65\162\x5f\160\150\x6f\156\145" => $ca, "\x6d\157\x32\146\x5f\x63\x6f\156\x66\151\147\165\162\145\x64\x5f\62\106\101\137\155\145\164\150\x6f\144" => "\117\x54\x50\40\117\x76\x65\x72\40\123\x4d\x53", "\155\x6f\x5f\62\146\141\x63\x74\157\162\137\x75\163\145\x72\137\162\145\x67\151\x73\x74\x72\x61\x74\151\157\156\x5f\163\x74\141\x74\165\163" => "\115\x4f\x5f\62\x5f\x46\x41\x43\124\x4f\x52\x5f\x50\x4c\125\x47\111\x4e\x5f\123\x45\x54\x54\x49\x4e\107\123"));
$NP = new Two_Factor_Setup();
$C7 = json_decode($NP->mo2f_update_userinfo($vj, "\123\x4d\x53", null, null, null), true);
x7x:
$o4 = "\x4d\117\x5f\62\x5f\x46\x41\x43\124\x4f\122\x5f\x53\x45\x54\x55\120\137\123\x55\x43\x43\x45\123\123";
gZ5:
goto ZWT;
lpF:
$oR = Mo2fConstants::langTranslate($CG["\155\x65\x73\x73\x61\147\145"]);
ZWT:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto y2k;
Ovw:
$wX = new WP_Error();
$wX->add("\145\x6d\160\164\171\137\x75\163\x65\x72\x6e\141\x6d\x65", "\x3c\163\164\162\x6f\156\147\x3e" . __("\105\122\x52\x4f\122", "\155\x69\x6e\x69\x6f\162\x61\156\x67\145\x2d\x32\x2d\146\x61\143\x74\x6f\162\55\141\165\x74\150\145\156\164\151\x63\x61\164\x69\x6f\156") . "\x3c\57\x73\x74\162\x6f\x6e\x67\x3e\72\x20" . __("\x49\x6e\166\x61\154\x69\x64\x20\122\145\x71\x75\x65\x73\164\x2e", "\x6d\x69\x6e\x69\157\x72\x61\156\147\145\x2d\x32\x2d\146\141\x63\164\157\162\55\x61\165\164\150\x65\156\164\151\x63\x61\x74\x69\x6f\156"));
return $wX;
y2k:
T8Z:
}
function mo2f_inline_send_otp()
{
if (!isset($_POST["\x6d\151\156\x69\x6f\x72\x61\x6e\147\145\x5f\x69\156\x6c\x69\x6e\145\137\166\x65\x72\x69\x66\171\137\160\x68\x6f\156\145\x5f\156\x6f\x6e\x63\145"])) {
goto Hep;
}
$T7 = sanitize_text_field($_POST["\155\151\x6e\x69\x6f\162\x61\x6e\x67\x65\137\151\156\x6c\151\156\145\x5f\166\145\x72\151\146\x79\x5f\x70\150\157\x6e\145\x5f\156\x6f\x6e\x63\145"]);
if (!wp_verify_nonce($T7, "\155\x69\x6e\x69\157\x72\141\x6e\147\x65\55\x32\55\146\x61\x63\164\157\162\55\151\156\154\x69\156\x65\55\x76\145\162\151\146\171\x2d\160\150\x6f\x6e\x65\x2d\x6e\x6f\156\143\145")) {
goto WXJ;
}
global $aq;
$this->miniorange_pass2login_start_session();
$ca = isset($_POST["\x76\x65\x72\151\x66\x79\x5f\160\150\157\x6e\x65"]) ? sanitize_text_field($_POST["\x76\x65\x72\x69\x66\171\137\x70\x68\x6f\x6e\145"]) : '';
$vj = isset($_POST["\x76\145\162\151\146\171\137\145\155\x61\x69\154"]) ? sanitize_text_field($_POST["\x76\145\162\x69\146\x79\137\x65\x6d\x61\151\x6c"]) : '';
$dj = isset($_POST["\x73\145\x73\x73\151\157\x6e\x5f\x69\144"]) ? sanitize_text_field($_POST["\x73\145\163\163\x69\157\x6e\137\151\144"]) : null;
$current_user = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\x66\x5f\x63\x75\x72\x72\x65\156\164\x5f\165\163\145\162\x5f\151\144");
$kO = isset($_POST["\x72\x65\144\x69\162\145\143\x74\137\x74\x6f"]) ? esc_url_raw($_POST["\x72\x65\144\x69\162\145\143\164\137\x74\157"]) : null;
$eO = new Customer_Setup();
$Jj = $aq->get_user_detail("\x6d\157\62\x66\137\143\x6f\x6e\x66\x69\x67\x75\162\x65\x64\x5f\62\106\x41\x5f\x6d\x65\164\150\x6f\x64", $current_user);
$aC = array();
$vj = empty($vj) ? $aq->get_user_detail("\x6d\x6f\62\x66\x5f\x75\x73\x65\162\x5f\x65\x6d\x61\151\154", $current_user) : $vj;
$oR = '';
$o4 = "\115\117\x5f\62\x5f\x46\x41\103\124\x4f\x52\x5f\x50\x52\117\115\120\x54\137\x55\123\105\122\137\106\117\x52\137\62\x46\x41\137\x4d\105\124\x48\x4f\104\x53";
if (!($Jj == "\x53\115\x53" || $Jj == "\120\110\x4f\x4e\x45\x20\126\105\x52\x49\106\x49\x43\101\x54\x49\117\116" || $Jj == "\x53\115\x53\x20\x41\116\104\x20\105\x4d\x41\x49\114")) {
goto Tl5;
}
$ca = sanitize_text_field($_POST["\166\x65\x72\151\x66\171\137\160\x68\157\x6e\145"]);
if (!MO2f_Utility::mo2f_check_empty_or_null($ca)) {
goto kHj;
}
$oR = __("\120\154\145\x61\163\x65\x20\x65\x6e\x74\145\162\40\x79\157\x75\x72\40\160\x68\x6f\x6e\145\40\x6e\x75\155\x62\145\162\x2e", "\155\151\x6e\x69\157\162\141\x6e\147\145\55\62\55\x66\141\x63\x74\157\162\55\141\x75\x74\x68\x65\156\164\x69\143\141\x74\x69\x6f\156");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
kHj:
$ca = str_replace("\40", '', $ca);
update_user_meta($current_user, "\155\x6f\x32\x66\137\165\163\145\162\137\x70\150\157\x6e\x65", $ca);
$aq->update_user_details($current_user, array("\155\x6f\x32\x66\x5f\165\x73\145\x72\x5f\160\x68\157\x6e\145" => $ca));
Tl5:
if ("\x4f\x54\120\137\x4f\x56\105\x52\137\123\x4d\123" === $Jj || "\123\x4d\123" === $Jj) {
goto hI5;
}
if ("\123\115\x53\40\101\116\x44\40\105\115\x41\111\114" === $Jj) {
goto Fbc;
}
if ("\x50\110\117\116\105\40\126\105\x52\111\106\x49\x43\101\x54\x49\117\x4e" === $Jj) {
goto MZ3;
}
if ("\x4f\x54\x50\40\x4f\126\x45\x52\40\105\115\101\111\x4c" === $Jj || "\117\x54\120\x20\117\166\x65\x72\x20\105\x6d\141\x69\154" === $Jj) {
goto M_s;
}
if (!("\117\124\x50\40\117\166\145\x72\x20\124\x65\x6c\x65\x67\162\x61\x6d" === $Jj)) {
goto Mp3;
}
$Re = "\117\x54\x50\x20\x4f\x76\x65\x72\40\x54\x65\154\145\x67\x72\141\155";
$bR = $current_user;
$oc = sanitize_text_field($_POST["\166\x65\x72\151\146\x79\x5f\x63\x68\141\x74\x49\x44"]);
$Je = '';
$ku = 1;
Ej1:
if (!($ku < 7)) {
goto ujM;
}
$Je .= rand(0, 9);
cHM:
$ku++;
goto Ej1;
ujM:
update_user_meta($bR, "\x6d\157\62\x66\x5f\x6f\164\x70\x5f\x74\x6f\x6b\145\156", $Je);
update_user_meta($bR, "\x6d\x6f\62\146\x5f\x74\145\x6c\x65\147\x72\141\155\x5f\x74\x69\x6d\145", time());
update_user_meta($bR, "\x6d\157\x32\x66\x5f\164\145\x6d\160\137\143\x68\x61\x74\x49\104", $oc);
$jB = esc_url(MoWpnsConstants::TELEGRAM_OTP_LINK);
$VV = array("\x6d\157\x32\146\137\x6f\164\x70\x5f\x74\157\x6b\145\156" => $Je, "\x6d\157\62\x66\x5f\143\150\141\164\x69\x64" => $oc);
$jM = curl_init();
curl_setopt_array($jM, array(CURLOPT_URL => $jB, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $VV, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false));
$b1 = curl_exec($jM);
curl_close($jM);
if ($b1 == "\123\x55\x43\x43\105\x53\123") {
goto a1x;
}
$oR = __("\124\x68\x65\162\145\40\x77\145\162\145\x20\x61\x6e\40\145\x72\x72\157\x72\x20\x77\x68\x69\154\x65\x20\x73\145\156\144\151\156\147\40\164\x68\x65\x20\x4f\x54\120\56\40\120\x6c\x65\x61\163\x65\x20\x63\157\x6e\146\x69\x72\x6d\40\171\x6f\165\x72\x20\x63\150\141\x74\111\104\x20\x61\156\144\40\x74\162\x79\x20\x61\x67\141\x69\x6e\x2e", "\x6d\x69\x6e\x69\157\x72\141\x6e\x67\x65\55\x32\x2d\x66\x61\143\164\x6f\162\55\141\165\x74\x68\145\156\164\x69\x63\141\164\151\157\x6e");
goto z4K;
a1x:
$oR = __("\101\156\x20\117\124\x50\40\150\x61\163\x20\142\x65\x65\x6e\x20\163\145\156\x74\x20\x74\x6f\40\x79\x6f\x75\x72\40\147\x69\166\145\x6e\x20\143\150\141\164\x20\111\x44\x2e\x20\x50\154\x65\141\x73\145\x20\145\156\164\145\x72\40\151\x74\40\142\145\154\157\167\x20\146\157\162\40\166\145\162\x69\146\151\143\x61\x74\x69\157\156\56", "\x6d\151\156\x69\x6f\162\141\156\x67\145\55\x32\55\x66\x61\143\x74\x6f\162\55\141\165\x74\x68\145\156\164\151\x63\141\x74\x69\157\156");
z4K:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
Mp3:
goto XB1;
M_s:
$Re = "\117\124\120\x5f\117\126\x45\x52\x5f\x45\115\x41\111\114";
$aC = $vj;
XB1:
goto IQI;
MZ3:
$Re = "\120\110\117\x4e\105\x5f\x56\105\x52\x49\x46\111\103\101\124\x49\117\116";
IQI:
goto YTu;
Fbc:
$Re = "\x4f\124\120\x5f\x4f\126\105\122\x5f\123\115\123\137\x41\x4e\104\x5f\x45\115\101\111\x4c";
$aC = array("\160\150\157\156\x65" => $ca, "\145\155\141\x69\154" => $vj);
YTu:
goto UYz;
hI5:
$Re = "\x53\x4d\123";
UYz:
if ("\123\115\123\40\x41\116\104\40\x45\115\101\111\x4c" === $Jj) {
goto u_3;
}
if ("\117\x54\x50\x20\117\x56\x45\122\x20\x45\115\x41\x49\114" === $Jj) {
goto l27;
}
if ("\x53\115\123" === $Jj) {
goto xXp;
}
update_user_meta($current_user, "\x74\145\155\x70\x52\145\147\105\x6d\x61\151\154", $vj);
$Mx = empty($vj) ? $ca : $vj;
$CG = json_decode($eO->send_otp_token($Mx, $Re, get_site_option("\x6d\157\62\146\137\143\165\x73\164\157\155\x65\x72\x4b\x65\x79"), get_site_option("\x6d\x6f\x32\x66\x5f\141\x70\x69\x5f\x6b\145\x79")), true);
goto JYA;
xXp:
$CG = json_decode($eO->send_otp_token($ca, $Re, get_site_option("\155\157\x32\x66\x5f\143\165\163\x74\x6f\155\145\x72\x4b\x65\171"), get_site_option("\155\x6f\x32\146\x5f\x61\160\151\x5f\153\145\x79")), true);
JYA:
goto wzk;
l27:
$CG = json_decode($eO->send_otp_token($vj, $Re, get_site_option("\x6d\157\62\146\137\x63\165\163\164\x6f\x6d\145\162\x4b\145\x79"), get_site_option("\155\x6f\62\146\x5f\x61\x70\x69\137\153\x65\171")), true);
wzk:
goto Tvv;
u_3:
$CG = json_decode($eO->send_otp_token($aC, $Re, get_site_option("\155\x6f\62\146\x5f\x63\165\163\164\157\x6d\145\162\113\x65\x79"), get_site_option("\x6d\157\x32\146\137\141\x70\x69\137\x6b\x65\x79")), true);
Tvv:
if (json_last_error() == JSON_ERROR_NONE) {
goto PJU;
}
$oR = __("\111\x6e\x76\141\154\151\x64\40\162\x65\x71\x75\x65\x73\164\x2e\x20\x50\x6c\145\141\x73\x65\40\x74\162\171\40\x61\x67\141\151\156", "\155\x69\156\x69\x6f\162\x61\156\x67\x65\x2d\x32\55\x66\x61\x63\164\x6f\x72\x2d\141\165\x74\x68\x65\x6e\164\151\x63\x61\164\151\x6f\x6e");
goto nId;
PJU:
if ("\105\122\x52\x4f\122" === $CG["\163\164\141\x74\x75\163"]) {
goto X5q;
}
if ("\123\x55\x43\x43\105\123\x53" === $CG["\163\x74\141\164\x75\163"]) {
goto eMs;
}
if ("\106\x41\x49\114\105\104" === $CG["\163\164\141\x74\x75\163"]) {
goto ETo;
}
$oR = __("\x41\x6e\40\x65\x72\162\157\x72\40\157\x63\x63\x75\x72\x65\x64\40\167\x68\151\154\145\x20\x76\141\154\151\x64\x61\x74\151\x6e\x67\40\164\x68\x65\x20\165\163\145\162\56\40\x50\154\x65\x61\163\x65\x20\124\162\x79\40\141\x67\141\151\x6e\x2e", "\155\151\156\x69\157\x72\x61\156\x67\x65\55\62\55\146\x61\x63\x74\x6f\162\55\141\x75\x74\x68\x65\x6e\x74\x69\143\141\164\151\x6f\x6e");
goto FVm;
ETo:
$oR = __("\x59\x6f\165\162\x20\x53\115\x54\120\40\x69\x73\x20\156\x6f\164\x20\163\145\x74\56\40\x50\x6c\145\x61\x73\145\40\x73\x65\164\165\x70\x20\164\x68\145\x20\x53\x4d\x54\x50\40\141\x6e\144\40\164\162\171\x20\x61\x67\x61\151\x6e\56", "\x6d\x69\156\x69\157\x72\x61\156\x67\145\55\62\x2d\146\x61\x63\164\157\162\x2d\x61\x75\164\150\x65\156\164\x69\143\x61\164\x69\x6f\156");
FVm:
goto NhW;
eMs:
update_user_meta($current_user, "\x6d\x6f\x32\146\x5f\x74\x72\141\156\163\141\143\164\151\157\x6e\111\144", $CG["\x74\170\x49\x64"]);
if ("\123\x4d\x53" === $Jj) {
goto rcS;
}
if ("\123\x4d\x53\x20\101\116\104\x20\x45\x4d\101\111\x4c" === $Jj) {
goto Tcz;
}
if ("\x4f\x54\x50\40\117\126\x45\x52\40\x45\115\101\x49\x4c" === $Jj || "\117\124\x50\40\x4f\166\x65\x72\40\105\155\141\151\x6c" === $Jj) {
goto Eqz;
}
if (!("\x50\x48\117\116\105\x20\x56\105\x52\111\106\111\103\101\x54\x49\x4f\116" === $Jj)) {
goto Og0;
}
$oR = __("\x59\x6f\165\x20\x77\x69\154\x6c\x20\x72\145\143\x65\151\166\x65\40\141\x20\x70\x68\x6f\156\x65\x20\x63\x61\x6c\154\x20\x6f\x6e\x20\x74\150\x69\163\40\156\165\155\142\145\162\x20", "\155\x69\156\151\x6f\x72\x61\156\147\145\55\62\55\146\141\143\164\157\x72\x2d\x61\165\x74\x68\145\156\164\151\x63\x61\x74\151\x6f\156") . $ca . "\56" . __("\x50\154\145\141\x73\x65\x20\x65\156\164\x65\x72\40\x74\x68\x65\x20\157\x6e\x65\40\x74\x69\x6d\x65\40\160\x61\x73\163\143\x6f\144\145\40\142\145\154\157\x77\40\x74\157\x20\x76\145\162\x69\146\x79\40\171\157\x75\162\x20\156\165\x6d\x62\145\x72\x2e", "\155\151\156\x69\x6f\162\141\156\x67\145\55\62\x2d\146\141\x63\164\x6f\x72\55\141\165\164\x68\145\156\164\x69\143\141\164\x69\x6f\156");
Og0:
goto RTO;
Eqz:
$oR = __("\124\150\145\40\117\156\x65\x20\124\151\155\x65\x20\x50\141\x73\163\x63\x6f\x64\x65\40\x68\x61\x73\40\x62\x65\145\x6e\40\x73\145\156\164\x20\164\x6f\40", "\x6d\151\156\x69\157\x72\141\x6e\147\x65\55\62\55\146\x61\x63\x74\157\162\55\141\165\x74\x68\145\156\x74\x69\143\x61\164\151\157\156") . MO2f_Utility::mo2f_get_hidden_email($aC) . "\x2e" . __("\40\x50\x6c\x65\x61\163\x65\x20\x65\156\x74\145\x72\40\x74\150\x65\x20\157\156\x65\x20\x74\x69\155\x65\40\x70\141\x73\163\143\x6f\144\145\x20\163\145\156\164\x20\x74\157\x20\x79\x6f\165\x72\40\145\x6d\141\x69\154\40\164\157\40\x76\145\x72\x69\x66\x79\56", "\x6d\151\x6e\x69\x6f\162\x61\156\147\145\x2d\62\55\146\141\x63\164\x6f\x72\x2d\x61\x75\164\150\145\156\x74\x69\143\x61\x74\151\157\156");
RTO:
goto q4p;
Tcz:
$oR = "\x54\150\145\40\117\x6e\x65\40\124\151\155\x65\x20\x50\x61\x73\163\143\157\144\x65\x20\x68\x61\163\40\x62\145\x65\x6e\40\163\145\x6e\164\x20\x74\157\x20" . $aC["\x70\x68\157\x6e\145"] . "\40\141\x6e\144\x20" . $aC["\x65\155\141\151\x6c"] . "\x2e\x20\120\x6c\145\x61\x73\145\x20\145\x6e\x74\x65\162\40\x74\x68\x65\40\x6f\156\145\40\x74\x69\x6d\x65\40\160\x61\163\163\x63\157\144\145\x20\x73\x65\x6e\164\x20\164\x6f\x20\x79\157\165\162\40\145\x6d\141\x69\154\x20\x61\156\x64\40\x70\150\x6f\156\x65\x20\164\x6f\40\166\145\x72\x69\146\x79\x2e";
q4p:
goto ODg;
rcS:
$oR = __("\124\150\145\x20\117\156\145\40\x54\151\155\145\x20\x50\x61\163\163\x63\x6f\144\145\x20\150\x61\x73\40\142\145\145\x6e\40\163\145\x6e\x74\40\164\157\x20", "\155\151\156\x69\157\x72\141\x6e\x67\x65\x2d\x32\55\146\141\x63\x74\x6f\162\x2d\141\x75\x74\150\x65\156\164\151\143\141\164\151\157\x6e") . $ca . "\x2e" . __("\x50\154\145\141\163\145\x20\145\x6e\x74\145\162\x20\164\150\x65\40\157\156\145\40\x74\x69\x6d\145\x20\160\x61\x73\x73\143\157\144\x65\40\142\x65\x6c\157\167\x20\164\x6f\40\166\x65\x72\x69\146\x79\40\171\x6f\165\x72\40\x6e\165\x6d\x62\145\162\x2e", "\155\x69\156\151\157\x72\141\x6e\147\x65\x2d\62\55\146\x61\143\164\x6f\162\x2d\x61\165\x74\150\x65\156\164\151\143\x61\x74\151\157\x6e");
ODg:
NhW:
goto LT6;
X5q:
$oR = Mo2fConstants::langTranslate($CG["\155\x65\163\x73\x61\147\x65"]);
LT6:
nId:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto RHX;
WXJ:
$wX = new WP_Error();
$wX->add("\145\x6d\160\164\171\x5f\165\163\145\162\x6e\141\x6d\145", "\74\163\x74\162\157\156\x67\76" . __("\105\122\122\x4f\122", "\155\x69\x6e\x69\157\162\x61\156\x67\145\55\62\55\146\141\x63\164\x6f\162\x2d\x61\165\164\150\145\156\x74\151\x63\141\164\x69\157\156") . "\74\x2f\163\164\x72\x6f\156\x67\76\x3a\x20" . __("\111\x6e\x76\141\x6c\x69\x64\40\x52\145\x71\x75\145\163\x74\56", "\x6d\x69\x6e\x69\157\x72\x61\156\147\145\55\x32\55\x66\x61\x63\164\157\x72\55\141\x75\x74\x68\145\x6e\164\151\x63\x61\x74\x69\x6f\x6e"));
return $wX;
RHX:
Hep:
}
function mo2f_inline_validate_kba()
{
if (!isset($_POST["\155\157\62\x66\137\151\x6e\x6c\151\156\x65\x5f\163\141\166\x65\x5f\153\142\x61\x5f\156\x6f\156\x63\x65"])) {
goto SVM;
}
$T7 = sanitize_text_field($_POST["\x6d\157\62\146\x5f\151\x6e\154\151\156\145\x5f\163\141\166\145\x5f\x6b\142\x61\137\156\157\x6e\x63\145"]);
if (!wp_verify_nonce($T7, "\x6d\151\156\151\157\162\x61\156\147\x65\x2d\x32\x2d\146\141\x63\164\x6f\162\x2d\151\156\x6c\x69\156\145\55\163\141\x76\x65\55\153\x62\141\x2d\x6e\x6f\156\143\145")) {
goto KGh;
}
global $aq;
$this->miniorange_pass2login_start_session();
$oR = '';
$o4 = isset($_POST["\x6d\157\x32\x66\137\151\x6e\x6c\x69\x6e\145\137\x6b\142\x61\x5f\x73\164\x61\164\165\163"]) ? "\x4d\117\x5f\x32\137\x46\101\103\124\x4f\122\x5f\x53\105\x54\x55\120\x5f\123\x55\x43\103\x45\x53\123" : "\x4d\117\137\x32\x5f\106\x41\103\124\x4f\x52\x5f\x50\122\117\x4d\120\x54\x5f\125\x53\x45\122\137\x46\x4f\x52\137\62\x46\x41\x5f\x4d\105\124\110\117\104\123";
$kO = isset($_POST["\162\x65\144\151\162\x65\x63\164\137\164\x6f"]) ? $_POST["\162\145\x64\x69\162\145\x63\164\137\x74\x6f"] : null;
$dj = isset($_POST["\163\x65\163\x73\151\157\x6e\137\x69\x64"]) ? $_POST["\x73\x65\x73\x73\151\157\x6e\137\151\x64"] : null;
$xi = isset($_POST["\x6d\x6f\x32\x66\x5f\153\x62\x61\x71\x75\145\163\x74\151\x6f\156"]) ? $_POST["\155\x6f\62\x66\137\x6b\142\141\161\x75\145\163\x74\151\157\156"] : array();
$P5 = array();
foreach ($xi as $KP) {
if (MO2f_Utility::mo2f_check_empty_or_null($KP)) {
goto zH9;
}
$in = sanitize_text_field($KP);
$in = addcslashes(stripslashes($in), "\42\134");
array_push($P5, $in);
goto k_z;
zH9:
$oR = __("\x41\154\x6c\40\x74\150\145\x20\x66\151\x65\x6c\144\163\x20\x61\162\145\40\x72\x65\x71\x75\x69\162\x65\x64\56\x20\120\x6c\x65\x61\163\x65\x20\x65\x6e\164\x65\x72\x20\166\x61\154\151\144\x20\145\x6e\x74\162\151\x65\x73\56", "\155\151\x6e\x69\157\162\141\x6e\147\x65\55\x32\55\146\141\143\164\x6f\162\55\141\x75\x74\150\x65\x6e\x74\151\x63\141\164\x69\157\x6e");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
k_z:
JT0:
}
vZg:
if (array_unique($P5) == $P5) {
goto v45;
}
$oR = __("\124\150\x65\x20\161\165\x65\163\164\151\x6f\156\x73\40\171\157\165\x20\163\x65\154\x65\x63\164\40\155\165\x73\164\x20\142\145\40\x75\x6e\x69\x71\165\x65\x2e", "\155\x69\x6e\x69\157\x72\x61\156\147\x65\55\62\x2d\x66\x61\143\164\157\162\55\x61\165\164\x68\x65\x6e\164\x69\143\141\164\x69\157\156");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
v45:
$FE = isset($_POST["\x6d\157\62\x66\137\153\142\x61\137\x61\156\x73"]) ? $_POST["\x6d\157\x32\x66\x5f\x6b\142\x61\137\x61\x6e\x73"] : array();
$KM = array();
foreach ($FE as $W0) {
if (MO2f_Utility::mo2f_check_empty_or_null($W0)) {
goto C2N;
}
$in = sanitize_text_field($W0);
$W0 = strtolower($W0);
array_push($KM, $W0);
goto xFp;
C2N:
$oR = __("\101\x6c\x6c\40\164\x68\x65\x20\x66\151\x65\x6c\x64\163\x20\141\x72\x65\40\x72\145\x71\165\x69\162\145\144\56\x20\120\x6c\145\x61\x73\x65\40\145\156\x74\x65\x72\40\x76\x61\x6c\151\144\x20\145\156\x74\x72\151\145\163\56", "\155\x69\x6e\151\157\x72\x61\156\x67\x65\55\62\55\146\x61\143\x74\157\x72\55\141\x75\164\150\x65\156\x74\x69\143\x61\164\x69\x6f\156");
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
xFp:
oHz:
}
w_x:
$bR = MO2f_Utility::mo2f_get_transient($dj, "\x6d\157\x32\146\137\x63\165\162\x72\x65\x6e\x74\137\165\163\145\162\x5f\x69\144");
$current_user = get_user_by("\x69\144", $bR);
$vj = $aq->get_user_detail("\x6d\157\x32\x66\137\x75\163\x65\x72\x5f\x65\155\141\x69\154", $current_user->ID);
$o4 = "\115\x4f\x5f\x32\x5f\x46\x41\x43\124\x4f\x52\137\x53\x45\x54\125\120\x5f\x53\x55\x43\x43\x45\123\x53";
$aq->update_user_details($current_user->ID, array("\x6d\157\x32\x66\x5f\x53\x65\x63\x75\x72\151\x74\x79\121\165\x65\x73\164\x69\157\x6e\x73\137\x63\157\x6e\x66\x69\x67\x5f\x73\164\x61\164\x75\163" => true, "\155\x6f\137\x32\146\141\x63\164\157\162\137\x75\163\x65\162\x5f\162\x65\147\x69\x73\x74\162\x61\164\151\x6f\156\137\163\x74\x61\164\165\x73" => "\x4d\117\x5f\62\x5f\x46\x41\103\x54\117\x52\x5f\x50\x4c\125\x47\111\x4e\137\123\x45\x54\x54\111\116\x47\123"));
if (MO2F_IS_ONPREM) {
goto YPE;
}
$oN = array();
foreach ($_POST["\155\157\x32\146\137\153\x62\x61\161\165\x65\x73\164\151\x6f\156"] as $Yt => $kB) {
$oN[$Yt] = $_POST["\155\157\x32\x66\137\x6b\x62\x61\161\165\145\163\x74\151\157\156"][$Yt];
xd4:
}
UCj:
$Ma = array();
foreach ($_POST["\155\x6f\62\146\x5f\153\x62\141\137\x61\156\x73"] as $Yt => $kB) {
$Ma[$Yt] = $_POST["\x6d\157\x32\146\137\x6b\x62\141\137\x61\x6e\163"][$Yt];
AJ4:
}
HJH:
$XY = array();
$Hh = array();
$ku = 0;
tld:
if (!($ku < sizeof($oN))) {
goto rQY;
}
$XY[$ku] = addcslashes(stripslashes($oN[$ku]), "\42\x5c");
$Hh[$ku] = addcslashes(stripslashes($Ma[$ku]), "\x22\134");
Gps:
$ku++;
goto tld;
rQY:
$vF = new Two_Factor_Setup();
$ES = json_decode($vF->register_kba_details($vj, $XY, $Hh, $bR), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto aQw;
}
if (!($ES["\x73\164\x61\164\x75\163"] == "\123\125\x43\x43\x45\123\x53")) {
goto yaY;
}
if (!(isset($_POST["\x6f\x70\x74\151\x6f\156"]) && $_POST["\157\x70\164\151\157\x6e"] == "\x6d\x6f\x32\x66\137\151\x6e\154\151\x6e\145\x5f\x6b\142\x61\137\x6f\160\x74\x69\157\x6e")) {
goto OsQ;
}
$C7 = json_decode($vF->mo2f_update_userinfo($vj, "\x4b\102\101", null, null, null), true);
OsQ:
yaY:
aQw:
YPE:
$fy = array();
$ku = 0;
i6a:
if (!($ku < sizeof($KM))) {
goto dTh;
}
$fy[$ku] = md5($KM[$ku]);
hBM:
$ku++;
goto i6a;
dTh:
$Lb = array();
$ku = 0;
igM:
if (!($ku < sizeof($P5))) {
goto uhx;
}
$Lb[$P5[$ku]] = $fy[$ku];
tMm:
$ku++;
goto igM;
uhx:
update_user_meta($current_user->ID, "\155\157\x32\146\137\153\142\x61\137\x63\x68\141\x6c\x6c\145\156\147\x65", $Lb);
if (isset($_POST["\x6d\157\x32\x66\x5f\x69\156\x6c\151\x6e\x65\x5f\153\x62\141\x5f\x73\x74\141\x74\x75\163"])) {
goto ynw;
}
update_user_meta($current_user->ID, "\x6d\157\62\x66\137\x32\106\101\x5f\x6d\145\x74\x68\157\x64\137\164\x6f\137\x63\157\156\146\x69\147\x75\162\x65", "\x53\145\x63\x75\x72\x69\164\x79\x20\121\x75\145\x73\x74\x69\x6f\x6e\163");
$aq->update_user_details($current_user->ID, array("\x6d\x6f\x32\x66\x5f\143\x6f\x6e\146\151\147\x75\x72\x65\144\x5f\62\106\x41\137\155\x65\x74\x68\x6f\144" => "\x53\145\x63\x75\x72\x69\164\x79\40\121\x75\145\163\164\151\157\x6e\x73"));
ynw:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto Gi9;
KGh:
$wX = new WP_Error();
$wX->add("\145\155\160\x74\x79\137\x75\163\x65\162\156\x61\x6d\x65", "\74\163\x74\x72\x6f\156\147\x3e" . __("\105\122\x52\x4f\122", "\155\x69\x6e\151\157\162\x61\156\147\x65\x2d\x32\55\146\x61\x63\x74\157\162\x2d\x61\x75\164\150\x65\x6e\x74\151\143\141\x74\151\157\156") . "\x3c\x2f\163\x74\x72\x6f\x6e\x67\x3e\72\x20" . __("\111\156\x76\x61\154\x69\144\40\x52\x65\161\x75\145\x73\x74\x2e", "\x6d\x69\156\x69\x6f\x72\141\x6e\147\145\55\62\55\146\x61\x63\x74\x6f\x72\55\x61\165\x74\150\145\156\164\x69\x63\141\164\x69\157\x6e"));
return $wX;
Gi9:
SVM:
}
function mo2f_inline_validate_mobile_authentication()
{
if (!isset($_POST["\155\x6f\x5f\141\x75\x74\150\137\x69\156\x6c\151\x6e\x65\137\x6d\157\x62\x69\154\x65\x5f\x72\x65\x67\x69\163\164\x72\x61\164\x69\x6f\156\137\x63\x6f\x6d\160\x6c\x65\x74\145\x5f\x6e\157\x6e\x63\x65"])) {
goto Uxu;
}
$T7 = sanitize_text_field($_POST["\155\157\137\141\165\164\x68\x5f\x69\156\154\x69\x6e\145\x5f\x6d\157\x62\151\154\145\x5f\x72\x65\x67\x69\x73\x74\x72\x61\164\x69\x6f\x6e\137\143\157\x6d\x70\154\145\164\x65\x5f\x6e\x6f\x6e\143\x65"]);
if (!wp_verify_nonce($T7, "\x6d\x69\x6e\151\157\x72\x61\x6e\x67\x65\x2d\x32\x2d\146\x61\x63\164\x6f\162\x2d\151\x6e\x6c\151\x6e\x65\x2d\x6d\x6f\x62\x69\x6c\145\x2d\x72\145\147\x69\163\x74\x72\141\164\151\157\156\x2d\x63\x6f\155\x70\x6c\145\164\145\55\x6e\157\156\x63\x65")) {
goto QaQ;
}
global $aq;
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["\163\x65\x73\x73\151\x6f\156\137\151\x64"]) ? sanitize_text_field($_POST["\x73\145\x73\x73\x69\157\x6e\137\x69\144"]) : null;
MO2f_Utility::unset_temp_user_details_in_table("\155\x6f\62\x66\137\x74\x72\x61\x6e\163\x61\143\x74\x69\157\156\x49\144", $dj);
$bR = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\x32\x66\137\x63\165\162\162\145\x6e\164\137\x75\x73\145\x72\x5f\x69\x64");
$kO = isset($_POST["\x72\145\x64\x69\162\145\x63\164\x5f\164\157"]) ? esc_url_raw($_POST["\162\145\144\151\x72\x65\x63\164\x5f\164\157"]) : null;
$Jj = $aq->get_user_detail("\x6d\157\x32\146\x5f\x63\157\156\x66\151\x67\165\162\145\x64\137\x32\106\101\x5f\x6d\145\164\150\x6f\144", $bR);
$vj = $aq->get_user_detail("\x6d\157\x32\x66\137\165\x73\x65\x72\137\145\155\x61\151\154", $bR);
$oR = '';
$o4 = "\x4d\x4f\x5f\x32\x5f\106\101\x43\124\x4f\x52\137\120\122\x4f\x4d\120\124\x5f\x55\x53\x45\x52\x5f\x46\x4f\x52\137\x32\x46\101\137\x4d\105\124\x48\117\104\123";
$qf = new Two_Factor_Setup();
if ($Jj == "\123\117\x46\124\40\x54\x4f\113\105\x4e") {
goto yFr;
}
if ($Jj == "\x50\125\123\x48\x20\116\x4f\x54\x49\106\x49\103\101\124\x49\x4f\116\123") {
goto QM0;
}
if ($Jj == "\115\117\x42\x49\114\x45\40\x41\125\x54\110\x45\116\x54\111\103\x41\x54\111\117\116") {
goto YrF;
}
goto a0l;
yFr:
$MT = "\155\151\x6e\x69\x4f\x72\x61\x6e\147\x65\x20\123\x6f\146\164\x20\124\x6f\x6b\x65\x6e";
goto a0l;
QM0:
$MT = "\155\x69\x6e\x69\117\x72\141\156\147\x65\40\x50\165\x73\150\40\x4e\x6f\164\151\x66\x69\143\x61\164\x69\x6f\156";
goto a0l;
YrF:
$MT = "\x6d\151\156\x69\x4f\x72\x61\x6e\147\145\x20\x51\122\x20\x43\x6f\144\145\40\101\x75\x74\150\x65\x6e\164\x69\143\x61\164\151\x6f\x6e";
a0l:
$C7 = json_decode($qf->mo2f_update_userinfo($vj, $Jj, null, null, null), true);
if (json_last_error() == JSON_ERROR_NONE) {
goto DZL;
}
$oR = __("\111\156\166\141\154\x69\x64\40\x72\145\161\x75\145\163\164\x2e\40\x50\x6c\145\141\x73\x65\x20\164\162\x79\40\x61\x67\141\x69\x6e", "\155\x69\x6e\151\x6f\x72\x61\x6e\147\x65\x2d\x32\x2d\x66\x61\x63\164\x6f\162\55\x61\165\164\x68\x65\x6e\164\x69\143\x61\164\x69\x6f\x6e");
goto to8;
DZL:
if ($C7["\x73\x74\141\x74\165\x73"] == "\105\122\x52\117\122") {
goto ycw;
}
if ($C7["\163\164\x61\164\165\x73"] == "\123\125\x43\x43\105\x53\x53") {
goto qKc;
}
$oR = __("\x41\156\x20\145\x72\x72\x6f\162\x20\157\143\x63\x75\162\x65\144\40\167\150\151\x6c\x65\40\x76\x61\x6c\151\x64\x61\164\x69\156\147\x20\164\x68\x65\x20\x75\x73\x65\x72\x2e\40\120\154\145\141\163\145\40\x54\x72\171\x20\x61\147\x61\x69\156\56", "\155\x69\156\151\x6f\162\x61\156\147\x65\x2d\62\55\146\x61\143\164\x6f\162\x2d\141\x75\x74\150\145\x6e\x74\x69\x63\x61\x74\151\157\x6e");
goto ciK;
ycw:
$oR = Mo2fConstants::langTranslate($C7["\x6d\145\x73\x73\x61\x67\145"]);
goto ciK;
qKc:
$aq->update_user_details($bR, array("\155\157\142\x69\154\145\137\162\x65\147\151\163\x74\x72\x61\x74\151\157\x6e\x5f\x73\x74\141\x74\x75\x73" => true, "\155\157\62\x66\x5f\x6d\151\156\x69\117\162\x61\156\147\145\121\122\x43\x6f\x64\x65\x41\165\x74\x68\145\x6e\164\x69\x63\x61\164\x69\157\156\137\143\157\156\146\x69\147\x5f\x73\164\x61\164\x75\163" => true, "\x6d\x6f\62\x66\137\x6d\x69\156\151\117\x72\x61\156\x67\145\x53\x6f\x66\164\124\157\153\x65\156\x5f\143\x6f\156\x66\151\147\137\163\x74\x61\164\165\163" => true, "\155\x6f\62\x66\137\x6d\x69\156\151\x4f\x72\141\x6e\147\x65\x50\x75\163\150\x4e\157\x74\151\x66\151\x63\x61\164\x69\x6f\156\137\x63\157\x6e\x66\151\147\137\163\x74\141\164\x75\x73" => true, "\x6d\157\x32\146\x5f\143\x6f\x6e\x66\x69\x67\x75\162\x65\x64\137\x32\x46\101\x5f\155\145\x74\x68\157\x64" => $MT, "\155\x6f\137\62\x66\x61\143\x74\x6f\162\x5f\165\163\145\x72\137\x72\x65\x67\151\163\x74\162\x61\x74\151\x6f\x6e\137\163\164\x61\164\x75\163" => "\x4d\x4f\x5f\62\137\x46\101\x43\124\x4f\x52\x5f\120\114\125\x47\111\116\137\x53\105\x54\124\x49\x4e\107\x53"));
$o4 = "\115\117\137\62\x5f\x46\101\x43\x54\117\122\137\123\x45\x54\125\x50\137\x53\x55\x43\x43\105\x53\123";
ciK:
to8:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto ZkP;
QaQ:
$wX = new WP_Error();
$wX->add("\145\x6d\160\164\x79\137\165\x73\145\x72\156\141\155\x65", "\74\163\x74\x72\157\156\x67\76" . __("\x45\122\x52\x4f\x52", "\x6d\x69\x6e\x69\x6f\162\x61\x6e\147\x65\55\62\55\146\141\143\164\157\162\55\141\165\164\x68\x65\x6e\164\x69\x63\141\x74\151\x6f\156") . "\x3c\x2f\x73\164\162\157\156\147\x3e\72\40" . __("\x49\x6e\x76\x61\154\x69\x64\40\122\145\x71\x75\145\x73\x74\56", "\x6d\x69\156\x69\x6f\162\141\156\x67\145\55\62\55\146\141\143\x74\x6f\162\55\x61\165\164\x68\x65\x6e\x74\x69\x63\141\x74\x69\157\x6e"));
return $wX;
ZkP:
Uxu:
}
function miniorange_challenge_forgotphone_nonce()
{
global $aq;
if (!isset($_POST["\155\151\156\x69\x6f\162\141\x6e\x67\x65\137\x63\150\141\x6c\x6c\145\x6e\147\x65\x5f\146\x6f\162\147\x6f\164\160\150\157\x6e\x65\x5f\156\x6f\x6e\x63\145"])) {
goto XvK;
}
$T7 = $_POST["\x6d\151\x6e\x69\157\162\x61\156\147\145\137\x63\150\141\x6c\x6c\145\x6e\x67\x65\x5f\x66\157\162\147\x6f\164\160\150\x6f\x6e\x65\x5f\x6e\x6f\156\x63\x65"];
if (!wp_verify_nonce($T7, "\155\151\x6e\151\157\162\x61\x6e\x67\x65\55\62\x2d\x66\141\143\x74\157\162\55\x63\x68\141\x6c\x6c\145\156\147\x65\x2d\146\x6f\162\147\157\x74\x70\x68\x6f\156\145\x2d\156\157\156\x63\x65")) {
goto vK6;
}
$this->miniorange_pass2login_start_session();
$D3 = MO2f_Utility::get_mo2f_db_option("\155\157\x32\146\x5f\145\x6e\x61\x62\154\x65\x5f\146\157\162\147\157\164\x70\x68\157\156\145", "\x73\x69\164\x65\137\157\160\x74\151\x6f\x6e");
$ii = MO2f_Utility::get_mo2f_db_option("\x6d\157\x32\x66\137\x65\156\x61\142\x6c\145\x5f\146\157\x72\x67\157\164\x70\x68\157\156\145\137\x6b\142\141", "\163\151\x74\x65\x5f\157\160\x74\x69\x6f\156");
$wO = MO2f_Utility::get_mo2f_db_option("\155\157\62\146\137\145\156\141\x62\x6c\x65\x5f\x66\157\x72\147\157\x74\x70\x68\157\156\145\137\x65\155\141\x69\x6c", "\163\x69\x74\145\x5f\x6f\160\x74\151\x6f\156");
$Uc = isset($_POST["\x6d\x6f\x32\146\137\163\x65\x6c\x65\x63\x74\145\144\137\x32\146\141\x63\164\157\x72\x5f\x6d\145\x74\150\157\x64"]) ? $_POST["\x6d\157\62\x66\x5f\163\145\154\x65\x63\x74\x65\x64\x5f\62\x66\141\x63\164\157\162\137\x6d\145\164\150\157\144"] : "\x4b\102\x41";
$kO = isset($_POST["\162\145\144\x69\162\145\143\x74\137\164\x6f"]) ? $_POST["\x72\x65\144\x69\x72\145\x63\164\x5f\x74\157"] : null;
$dj = isset($_POST["\163\145\x73\163\151\x6f\156\137\151\x64"]) ? $_POST["\163\145\x73\x73\x69\x6f\x6e\x5f\151\x64"] : null;
$current_user = MO2f_Utility::getUserFromSessionId($dj);
$IZ = $current_user->ID;
$mY = $aq->get_user_detail("\155\157\x32\146\137\x53\145\x63\165\162\x69\164\171\x51\165\145\x73\164\151\157\156\x73\137\143\157\156\x66\151\147\x5f\163\x74\x61\x74\165\163", $current_user->ID);
if ($D3 && $wO && $Uc == "\117\124\x50\x20\117\126\105\122\40\105\x4d\101\111\114") {
goto z6L;
}
if ($D3 && $ii) {
goto kda;
}
goto kfn;
z6L:
$eO = new Customer_Setup();
$vj = $aq->get_user_detail("\155\157\x32\x66\137\x75\x73\145\162\137\145\155\x61\151\x6c", $IZ);
$CG = json_decode($eO->send_otp_token($vj, "\117\124\120\137\117\x56\x45\x52\137\105\x4d\101\111\114", get_site_option("\155\157\x32\x66\137\143\165\163\x74\x6f\x6d\x65\x72\x4b\x65\171"), get_site_option("\x6d\x6f\62\x66\x5f\141\160\151\x5f\x6b\145\x79")), true);
$oR = '';
$GQ = '';
if (strcasecmp($CG["\x73\x74\x61\x74\165\x73"], "\x53\x55\103\x43\x45\x53\x53") == 0) {
goto wd3;
}
$oR = __("\105\162\162\x6f\162\40\x6f\143\143\x75\162\145\x64\40\167\150\x69\154\145\40\163\x65\x6e\144\151\156\147\x20\x4f\x54\x50\x20\157\x76\x65\x72\40\x79\x6f\x75\162\x20\162\145\x67\x73\x69\x74\x65\x72\145\144\x20\145\x6d\141\151\x6c\56\40\120\x6c\145\x61\163\145\x20\164\162\171\40\141\x67\x61\151\156\56\x20", "\155\151\156\151\157\162\x61\x6e\147\145\x2d\62\55\146\141\x63\x74\x6f\162\55\x61\165\164\x68\x65\156\x74\x69\x63\141\164\151\157\156");
$GQ = "\115\x4f\x5f\62\137\x46\x41\x43\x54\x4f\x52\x5f\103\110\x41\114\114\x45\116\107\x45\137\x4b\102\101\137\101\x4e\x44\x5f\x4f\124\120\x5f\x4f\126\x45\122\137\x45\x4d\x41\111\x4c";
goto WP0;
wd3:
$_SESSION["\155\x6f\x32\146\55\x6c\157\x67\151\x6e\x2d\164\x72\x61\156\x73\141\x63\x74\x69\x6f\x6e\111\144"] = $CG["\164\x78\111\144"];
MO2f_Utility::set_user_values($dj, "\x6d\157\x32\146\x5f\164\x72\141\156\163\x61\x63\164\x69\x6f\156\x49\x64", $CG["\x74\170\x49\144"]);
$oR = __("\x41\40\x6f\156\145\x20\x74\151\155\x65\x20\160\141\x73\x73\143\x6f\x64\145\x20\150\x61\x73\40\142\145\x65\x6e\x20\x73\145\156\x74\40\x74\x6f", "\155\x69\x6e\151\x6f\x72\141\x6e\147\x65\x2d\x32\x2d\x66\x61\x63\164\157\162\55\x61\x75\x74\x68\145\x6e\164\x69\143\x61\x74\x69\x6f\x6e") . "\40\74\142\76" . MO2f_Utility::mo2f_get_hidden_email($vj) . "\74\57\142\x3e\56\x20" . __("\120\x6c\145\x61\163\145\40\145\x6e\164\145\162\x20\164\x68\145\x20\117\124\120\40\x74\x6f\x20\x76\145\x72\x69\x66\x79\40\171\x6f\165\x72\x20\151\x64\x65\x6e\164\x69\164\x79\56\40", "\155\151\156\x69\x6f\162\x61\x6e\x67\145\x2d\62\x2d\x66\x61\x63\164\x6f\162\x2d\x61\165\164\x68\145\x6e\x74\151\x63\x61\x74\151\x6f\156");
$GQ = "\x4d\117\x5f\62\137\106\101\103\x54\x4f\x52\x5f\x43\110\x41\114\x4c\x45\116\x47\x45\137\x4f\x54\120\137\117\126\105\x52\137\105\x4d\101\x49\x4c";
WP0:
$this->miniorange_pass2login_form_fields($GQ, $oR, $kO, null, $dj, null);
goto kfn;
kda:
if ($mY) {
goto ugY;
}
$oR = __("\131\x6f\165\162\x20\113\102\101\x20\x69\163\x20\x6e\x6f\x74\40\x63\x6f\156\146\151\x67\x75\x72\145\x64\x2e\x20\x50\x6c\x65\141\x73\145\x20\143\x68\x6f\157\x73\x65\x20\157\x74\150\x65\x72\x20\157\x70\x74\151\157\x6e\40\164\157\40\x70\162\x6f\x63\x65\x65\144\x20\146\x75\162\x74\x68\145\162\x2e", "\x6d\151\x6e\x69\157\162\141\x6e\147\145\x2d\x32\x2d\x66\141\x63\x74\x6f\162\x2d\141\165\x74\x68\145\x6e\164\151\143\x61\164\x69\x6f\x6e");
$GQ = "\x4d\x4f\137\62\x5f\106\x41\103\124\117\x52\137\x43\x48\x41\114\x4c\105\x4e\x47\x45\137\x4b\102\x41\137\101\116\x44\137\x4f\x54\x50\x5f\x4f\x56\x45\122\137\105\115\101\x49\114";
$this->miniorange_pass2login_form_fields($GQ, $oR, $kO, null, $dj);
goto oUy;
ugY:
$this->mo2f_pass2login_kba_verification($current_user->ID, $kO);
oUy:
kfn:
goto Hop;
vK6:
$wX = new WP_Error();
$wX->add("\x65\155\160\164\x79\137\x75\x73\145\x72\x6e\141\x6d\145", "\x3c\x73\164\x72\157\x6e\147\76" . __("\105\122\x52\x4f\x52", "\155\x69\x6e\x69\157\162\141\x6e\147\145\x2d\x32\55\x66\x61\x63\164\157\x72\55\x61\165\164\150\x65\x6e\164\x69\x63\x61\x74\151\157\156") . "\x3c\57\x73\164\162\157\x6e\147\76\x3a\40" . __("\x49\156\166\141\154\x69\x64\40\122\x65\161\x75\145\163\x74\56", "\155\x69\156\151\157\162\x61\x6e\147\145\x2d\62\55\x66\141\x63\164\x6f\x72\55\x61\165\164\150\x65\156\x74\x69\143\x61\x74\x69\157\x6e"));
return $wX;
Hop:
XvK:
}
function mo2f_inline_setup_success($mJ, $kO, $d0)
{
global $aq, $ce;
$gl = $aq->get_user_detail("\155\x6f\62\x66\137\x53\x65\x63\165\162\151\164\x79\121\x75\x65\x73\x74\x69\157\156\163\x5f\143\x6f\156\x66\x69\x67\x5f\x73\164\141\164\165\163", $mJ);
$aq->update_user_details($mJ, array("\155\x6f\137\62\146\x61\143\164\157\x72\x5f\165\163\145\x72\x5f\x72\145\147\x69\x73\x74\x72\141\164\151\x6f\156\137\163\164\141\164\165\163" => "\115\117\x5f\x32\x5f\106\101\x43\124\x4f\x52\x5f\120\114\x55\107\x49\x4e\137\123\x45\x54\x54\111\116\x47\123"));
$uc = get_user_meta($mJ, "\x6d\x6f\x5f\x62\141\x63\153\x75\x70\137\143\x6f\144\x65\x5f\x67\x65\156\145\162\141\164\145\144", true);
if (!MoWpnsUtility::get_mo2f_db_option("\x6d\157\62\146\137\144\x69\x73\141\x62\154\145\x5f\x6b\142\x61", "\163\x69\164\145\137\x6f\x70\x74\x69\x6f\156") && $gl != 1) {
goto eiE;
}
if (empty($uc) && get_site_option("\x6d\x6f\62\x66\137\x62\x61\143\153\137\x75\160\x5f\143\157\144\145\163") == 1) {
goto zkC;
}
$MC = new Miniorange_Password_2Factor_Login();
MO2f_Utility::mo2f_debug_file("\114\x6f\147\147\x65\144\40\111\156\40\123\x75\x63\143\145\x73\163\x66\x75\x6c\154\171\40" . "\125\x73\x65\x72\137\111\x50\55" . $ce->get_client_ip() . "\40\125\163\x65\162\x5f\x49\x64\x2d" . $current_user->ID . "\40\105\155\141\151\x6c\55" . $current_user->user_email);
$MC->mo2fa_pass2login($kO, $d0);
exit;
goto FT1;
eiE:
prompt_user_for_setup_success($mJ, "\115\117\137\x32\137\106\101\103\124\x4f\x52\x5f\123\x45\124\x55\x50\x5f\123\x55\x43\x43\105\x53\x53", '', $d0, $kO);
exit;
goto FT1;
zkC:
$oR = '';
$o4 = "\115\117\x5f\x32\x5f\106\101\103\x54\117\x52\137\x47\105\x4e\105\x52\101\x54\105\x5f\x42\101\x43\x4b\125\x50\x5f\103\x4f\x44\105\123";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
FT1:
}
function mo2f_inline_get_qr_code_for_mobile($vj, $IZ)
{
$zp = new Two_Factor_Setup();
$CG = $zp->register_mobile($vj);
$C7 = json_decode($CG, true);
$F3 = '';
$nO = array();
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto giG;
}
if ($C7["\163\x74\141\164\165\x73"] == "\x45\x52\122\117\x52") {
goto Vm3;
}
if ($C7["\163\164\141\x74\x75\163"] == "\111\x4e\x5f\x50\122\x4f\107\x52\105\x53\x53") {
goto Ih6;
}
$nO["\155\145\x73\163\141\x67\x65"] = __("\x41\x6e\40\145\162\x72\157\162\40\x6f\143\143\x75\162\145\144\x20\167\x68\151\154\145\40\160\162\x6f\143\145\163\163\151\x6e\147\40\x79\157\165\162\40\x72\145\161\x75\145\x73\164\x2e\x20\x50\154\x65\141\163\x65\40\x54\x72\171\40\x61\147\x61\151\x6e\x2e", "\155\151\156\x69\x6f\162\141\156\x67\145\55\x32\55\x66\x61\143\164\x6f\162\x2d\x61\x75\164\x68\x65\x6e\164\x69\143\141\x74\151\x6f\x6e");
delete_user_meta($IZ, "\x6d\151\x6e\151\157\x72\141\x67\145\x71\x72");
goto WMn;
Ih6:
$nO["\155\145\163\163\x61\x67\x65"] = '';
$nO["\155\x6f\62\146\x2d\x6c\x6f\x67\x69\156\55\161\162\103\x6f\144\x65"] = $C7["\x71\162\103\x6f\x64\x65"];
$nO["\x6d\157\62\x66\x2d\x6c\x6f\x67\x69\156\55\x74\162\x61\156\x73\141\143\164\x69\157\156\x49\x64"] = $C7["\x74\170\x49\144"];
$nO["\155\157\x32\146\x5f\x73\150\157\x77\x5f\161\162\x5f\x63\x6f\144\145"] = "\115\117\137\x32\137\x46\x41\x43\x54\117\122\137\123\x48\x4f\127\x5f\x51\122\x5f\x43\x4f\104\x45";
update_user_meta($IZ, "\155\151\x6e\151\x6f\162\x61\147\x65\161\x72", $nO);
WMn:
goto GgH;
Vm3:
$nO["\155\x65\163\163\x61\147\x65"] = Mo2fConstants::langTranslate($C7["\x6d\145\x73\163\x61\x67\145"]);
delete_user_meta($IZ, "\155\151\x6e\151\157\x72\141\x67\x65\161\x72");
GgH:
giG:
return $nO;
}
function inline_mobile_configure()
{
if (!isset($_POST["\155\x69\156\151\x6f\x72\141\156\147\145\137\151\156\x6c\x69\156\145\x5f\163\x68\157\x77\x5f\161\x72\143\157\144\145\137\156\157\x6e\x63\145"])) {
goto bMi;
}
$T7 = sanitize_text_field($_POST["\x6d\151\156\x69\157\162\x61\x6e\147\x65\x5f\x69\x6e\x6c\151\156\145\137\x73\x68\x6f\167\x5f\161\x72\143\x6f\x64\145\x5f\x6e\x6f\x6e\x63\x65"]);
if (!wp_verify_nonce($T7, "\155\x69\x6e\x69\157\x72\x61\x6e\147\x65\55\x32\55\x66\x61\143\164\157\x72\x2d\151\x6e\x6c\151\x6e\x65\x2d\163\150\157\167\x2d\x71\162\x63\157\144\x65\x2d\x6e\157\x6e\x63\x65")) {
goto tRb;
}
global $aq;
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["\163\145\163\x73\151\x6f\x6e\137\x69\144"]) ? sanitize_text_field($_POST["\163\x65\x73\x73\151\x6f\156\137\x69\144"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\x32\146\x5f\x63\165\162\x72\145\x6e\x74\137\165\163\x65\162\x5f\x69\x64");
$kO = isset($_POST["\162\x65\x64\x69\162\x65\x63\164\x5f\x74\x6f"]) ? esc_url_raw($_POST["\162\x65\144\x69\x72\x65\143\164\137\164\x6f"]) : null;
$current_user = get_user_by("\151\x64", $bR);
$oR = '';
$o4 = "\x4d\x4f\x5f\x32\137\106\101\x43\x54\117\x52\137\120\x52\x4f\x4d\120\x54\137\x55\123\105\x52\137\x46\x4f\x52\x5f\62\106\101\137\x4d\x45\124\x48\117\x44\123";
$lj = $aq->get_user_detail("\155\157\137\x32\x66\141\143\164\157\x72\x5f\x75\x73\145\162\x5f\x72\x65\x67\x69\163\164\x72\x61\x74\151\x6f\156\x5f\163\164\141\164\x75\x73", $current_user->ID);
if ($lj == "\x4d\117\x5f\62\x5f\106\x41\103\124\117\x52\137\x49\116\111\124\x49\x41\x4c\111\x5a\x45\x5f\x54\x57\x4f\x5f\x46\x41\x43\x54\x4f\x52") {
goto nLM;
}
$oR = __("\x49\x6e\x76\141\x6c\151\x64\40\x72\145\161\165\145\x73\164\x2e\x20\120\154\x65\x61\163\145\40\162\x65\147\x69\163\x74\145\x72\x20\167\x69\x74\x68\x20\155\151\x6e\151\x4f\162\x61\156\147\x65\x20\x62\x65\146\x6f\x72\145\x20\143\157\x6e\x66\151\x67\165\162\151\x6e\147\40\171\x6f\x75\x72\x20\155\157\x62\151\154\145\56", "\x6d\x69\x6e\151\x6f\x72\x61\x6e\x67\x65\x2d\x32\x2d\146\x61\143\x74\x6f\162\55\x61\165\x74\x68\x65\156\164\x69\143\141\164\151\x6f\x6e");
goto TCK;
nLM:
$vj = $aq->get_user_detail("\x6d\157\x32\x66\137\165\163\145\x72\137\x65\x6d\x61\x69\154", $current_user->ID);
$nO = $this->mo2f_inline_get_qr_code_for_mobile($vj, $current_user->ID);
$oR = $nO["\x6d\x65\x73\163\x61\147\x65"];
MO2f_Utility::mo2f_set_transient($dj, "\155\157\x32\x66\137\x74\x72\141\x6e\163\x61\x63\x74\151\157\156\x49\x64", $nO["\155\157\x32\146\55\x6c\x6f\x67\151\156\55\x74\x72\x61\x6e\x73\x61\143\x74\151\x6f\x6e\111\144"]);
$this->mo2f_transactionid = $nO["\155\157\x32\146\55\x6c\x6f\147\151\156\55\164\x72\141\x6e\163\141\x63\164\151\x6f\156\x49\x64"];
TCK:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, $nO, $dj);
goto lNr;
tRb:
$wX = new WP_Error();
$wX->add("\x65\x6d\x70\164\x79\137\x75\x73\x65\162\x6e\x61\155\x65", "\74\x73\x74\162\157\x6e\147\76" . __("\x45\122\122\117\x52", "\x6d\x69\156\151\x6f\162\141\156\x67\x65\55\x32\x2d\x66\x61\x63\164\157\162\55\141\165\x74\x68\145\x6e\x74\x69\143\x61\x74\x69\157\156") . "\x3c\57\163\x74\x72\157\x6e\x67\76\72\40" . __("\x49\x6e\x76\141\154\x69\x64\x20\122\x65\161\x75\x65\x73\164\x2e", "\155\x69\x6e\x69\157\x72\x61\x6e\147\145\x2d\x32\55\x66\141\x63\164\157\162\55\141\x75\x74\x68\145\156\x74\151\x63\141\x74\x69\157\156"));
return $wX;
lNr:
bMi:
}
function inline_validate_and_set_ga()
{
if (!isset($_POST["\x6d\157\x32\x66\x5f\x69\156\154\x69\x6e\145\x5f\x76\x61\x6c\x69\x64\141\164\x65\x5f\x67\x61\137\156\157\x6e\143\145"])) {
goto c8C;
}
$T7 = sanitize_text_field($_POST["\x6d\x6f\x32\x66\137\151\156\x6c\x69\x6e\x65\137\166\x61\x6c\151\144\141\164\145\137\147\x61\x5f\156\x6f\x6e\143\x65"]);
if (!wp_verify_nonce($T7, "\155\151\x6e\151\157\x72\141\156\147\x65\x2d\62\55\x66\x61\x63\x74\157\x72\x2d\x69\x6e\x6c\x69\156\x65\55\147\157\x6f\147\x6c\145\55\141\165\164\150\55\x6e\x6f\156\143\x65")) {
goto K1O;
}
global $aq;
$this->miniorange_pass2login_start_session();
$Je = sanitize_text_field($_POST["\x67\157\x6f\x67\x6c\145\137\141\x75\x74\x68\137\x63\157\x64\145"]);
$dj = isset($_POST["\x73\x65\x73\163\x69\157\156\137\x69\144"]) ? sanitize_text_field($_POST["\163\x65\163\x73\x69\157\156\x5f\x69\144"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\x32\146\x5f\143\x75\x72\162\145\x6e\x74\x5f\x75\163\x65\x72\x5f\151\x64");
$current_user = get_user_by("\151\x64", $bR);
$kO = isset($_POST["\x72\x65\144\151\162\145\143\x74\137\164\x6f"]) ? esc_url_raw($_POST["\x72\145\144\x69\x72\145\x63\x74\x5f\164\x6f"]) : null;
$C0 = json_decode(get_user_meta($bR, "\155\157\62\146\x5f\x67\x6f\x6f\147\x6c\145\x5f\141\165\x74\x68", true), true);
$C0 = isset($C0) ? $C0 : null;
$bI = MO2f_Utility::mo2f_get_transient($dj, "\x73\145\143\162\x65\x74\x5f\x67\x61");
$oR = '';
$o4 = "\115\117\x5f\62\137\x46\x41\x43\x54\x4f\x52\x5f\x50\x52\117\115\120\x54\137\x55\x53\x45\x52\137\x46\117\x52\137\62\x46\x41\137\115\105\x54\x48\117\104\123";
if (MO2f_Utility::mo2f_check_number_length($Je)) {
goto LZ5;
}
$oR = __("\117\156\x6c\171\x20\144\151\147\x69\164\163\40\x61\162\x65\x20\x61\154\154\157\167\145\144\56\x20\x50\x6c\145\141\x73\145\40\145\156\x74\x65\162\x20\141\x67\141\151\156\x2e", "\x6d\x69\x6e\151\x6f\162\141\x6e\x67\145\x2d\62\x2d\146\141\143\x74\x6f\162\x2d\141\165\164\150\x65\x6e\164\151\x63\x61\x74\x69\157\x6e");
goto xy_;
LZ5:
$vj = $aq->get_user_detail("\x6d\157\62\146\x5f\x75\x73\145\x72\137\145\x6d\141\151\154", $current_user->ID);
$Ul = new Miniorange_Rba_Attributes();
$Kb = json_decode($Ul->mo2f_validate_google_auth($vj, $Je, $bI), true);
if (json_last_error() == JSON_ERROR_NONE) {
goto seA;
}
$oR = __("\x41\x6e\40\x65\x72\x72\x6f\162\40\x6f\x63\143\x75\162\x65\144\x20\167\x68\x69\x6c\145\x20\x76\x61\x6c\x69\144\141\x74\x69\x6e\x67\40\x74\150\x65\x20\165\163\x65\162\56\40\x50\154\145\x61\x73\145\40\x54\x72\x79\40\x61\147\x61\x69\156\56", "\x6d\151\156\x69\x6f\162\x61\x6e\147\x65\x2d\x32\55\146\x61\143\164\x6f\x72\55\x61\165\164\150\x65\156\x74\151\x63\x61\x74\151\157\156");
goto n5U;
seA:
if ($Kb["\163\x74\x61\x74\165\163"] == "\x53\x55\103\x43\x45\123\x53") {
goto SEw;
}
if ($Kb["\x73\x74\x61\164\x75\x73"] == "\x66\141\x6c\x73\145") {
goto ub8;
}
goto RGs;
SEw:
$C7 = $Kb;
if (json_last_error() == JSON_ERROR_NONE || MO2F_IS_ONPREM) {
goto xRs;
}
$oR = __("\101\156\40\x65\x72\x72\x6f\x72\x20\x6f\x63\143\165\x72\145\144\x20\167\150\x69\x6c\145\40\160\x72\x6f\x63\145\163\163\151\x6e\147\x20\171\157\x75\162\40\162\145\161\165\145\163\164\56\x20\120\x6c\x65\141\x73\x65\40\x54\162\x79\x20\x61\x67\141\x69\x6e\56", "\155\x69\156\x69\x6f\x72\x61\156\x67\145\55\62\x2d\x66\x61\x63\x74\x6f\162\x2d\x61\165\x74\x68\x65\x6e\x74\x69\x63\141\164\151\x6f\x6e");
goto VH2;
xRs:
if ($C7["\x73\x74\141\164\165\x73"] == "\123\125\x43\x43\x45\123\x53") {
goto xSx;
}
$oR = __("\101\156\x20\x65\x72\x72\x6f\x72\x20\x6f\143\x63\165\x72\145\x64\x20\167\x68\151\154\145\x20\160\x72\157\143\x65\163\x73\x69\156\147\x20\171\x6f\165\162\x20\162\145\x71\165\x65\x73\x74\56\40\x50\x6c\145\141\x73\145\40\124\162\171\x20\141\147\x61\x69\156\x2e", "\155\151\156\x69\157\x72\x61\156\147\145\x2d\62\x2d\x66\141\143\x74\x6f\162\55\141\x75\164\150\x65\156\x74\x69\143\x61\x74\151\157\x6e");
goto W1i;
xSx:
$aq->update_user_details($current_user->ID, array("\155\157\x32\x66\x5f\x47\157\x6f\147\x6c\145\101\165\x74\x68\x65\156\164\x69\143\141\164\157\x72\x5f\143\157\156\x66\x69\x67\x5f\x73\164\141\164\x75\163" => true, "\x6d\157\x32\146\137\x63\x6f\156\146\x69\147\165\x72\145\144\137\x32\106\x41\137\x6d\x65\164\x68\157\144" => "\107\157\x6f\x67\154\x65\x20\101\x75\164\x68\145\x6e\164\x69\143\x61\164\157\x72", "\x6d\157\x32\x66\x5f\101\x75\x74\x68\x79\101\165\164\150\x65\x6e\x74\x69\x63\141\164\x6f\x72\137\143\157\x6e\x66\151\x67\137\x73\164\141\164\x75\x73" => false, "\155\157\137\62\x66\141\x63\x74\x6f\x72\137\x75\x73\x65\x72\137\x72\145\x67\x69\163\x74\162\141\x74\x69\157\x6e\x5f\x73\164\141\164\x75\x73" => "\x4d\x4f\x5f\x32\x5f\106\101\103\124\117\122\137\x50\114\x55\x47\111\116\x5f\x53\105\124\x54\x49\116\x47\x53"));
if (!MO2F_IS_ONPREM) {
goto Qzj;
}
update_user_meta($current_user->ID, "\x6d\x6f\x32\x66\137\62\106\101\x5f\155\145\x74\x68\157\144\137\164\157\137\143\157\156\146\151\147\x75\x72\145", "\x47\117\x4f\107\x4c\x45\40\x41\x55\124\110\105\116\x54\x49\x43\101\124\117\x52");
$gp = new Google_auth_onpremise();
$gp->mo_GAuth_set_secret($current_user->ID, $bI);
Qzj:
update_user_meta($current_user->ID, "\x6d\157\x32\x66\x5f\x65\170\164\x65\162\156\141\x6c\137\141\x70\160\137\x74\171\160\x65", "\x47\x4f\x4f\107\114\x45\x20\x41\125\x54\110\x45\x4e\x54\x49\103\101\x54\x4f\x52");
$o4 = "\115\x4f\137\62\x5f\x46\x41\x43\124\117\x52\137\x53\x45\x54\125\120\137\x53\125\x43\x43\x45\123\123";
unset($_SESSION["\155\x6f\x32\146\x5f\147\x6f\x6f\x67\154\x65\137\x61\x75\164\150"]);
W1i:
VH2:
goto RGs;
ub8:
$oR = __("\x49\156\166\141\154\151\x64\40\x4f\124\120\x2e\x20\120\154\145\x61\x73\145\40\x54\162\x79\40\x61\147\141\151\156\56", "\155\151\156\151\x6f\162\141\x6e\x67\x65\x2d\x32\x2d\x66\141\x63\164\157\x72\55\x61\x75\164\150\x65\x6e\164\151\x63\x61\x74\151\x6f\156");
RGs:
n5U:
xy_:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto fhD;
K1O:
$wX = new WP_Error();
$wX->add("\x65\155\160\164\171\x5f\x75\163\145\162\x6e\x61\155\x65", "\74\163\x74\x72\x6f\x6e\147\x3e" . __("\x45\x52\x52\117\x52", "\155\x69\x6e\x69\x6f\x72\x61\156\x67\145\x2d\x32\55\x66\x61\143\x74\157\162\55\x61\x75\x74\x68\145\156\x74\x69\x63\x61\164\x69\157\x6e") . "\x3c\x2f\163\x74\x72\157\x6e\147\76\x3a\40" . __("\x49\x6e\166\x61\x6c\x69\x64\40\122\x65\161\x75\145\x73\x74\56", "\x6d\x69\x6e\x69\x6f\162\141\156\147\x65\x2d\62\x2d\146\141\143\x74\x6f\x72\55\x61\x75\164\x68\x65\x6e\x74\x69\143\141\164\151\157\x6e"));
return $wX;
fhD:
c8C:
}
function back_to_select_2fa()
{
if (!isset($_POST["\155\151\156\x69\157\162\141\x6e\147\x65\137\151\156\154\x69\156\x65\137\x74\167\157\x5f\x66\141\x63\164\x6f\x72\x5f\x73\x65\164\165\160"])) {
goto uAC;
}
$T7 = sanitize_text_field($_POST["\x6d\151\x6e\x69\157\162\141\x6e\147\x65\x5f\151\156\x6c\151\x6e\x65\x5f\164\x77\157\x5f\x66\x61\143\x74\x6f\x72\137\163\x65\x74\165\x70"]);
if (!wp_verify_nonce($T7, "\x6d\151\156\x69\x6f\162\141\156\147\x65\55\x32\x2d\146\141\143\164\157\162\x2d\x69\x6e\x6c\x69\156\x65\55\x73\x65\164\x75\x70\x2d\156\x6f\156\143\x65")) {
goto o6G;
}
global $aq;
$this->miniorange_pass2login_start_session();
unset($_SESSION["\155\157\x32\146\137\x67\x6f\157\x67\x6c\145\137\141\165\x74\x68"]);
unset($_SESSION["\x6d\157\62\x66\x5f\x61\165\164\150\x79\x5f\153\x65\171\163"]);
unset($_SESSION["\163\145\x63\162\x65\x74\x5f\147\141"]);
$dj = isset($_POST["\163\x65\163\x73\151\x6f\x6e\x5f\151\x64"]) ? sanitize_text_field($_POST["\x73\x65\163\163\151\x6f\x6e\137\151\144"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\157\x32\146\x5f\x63\165\x72\x72\145\x6e\164\x5f\x75\163\x65\162\137\x69\144");
$kO = isset($_POST["\162\x65\144\x69\162\145\x63\164\137\164\x6f"]) ? esc_url_raw($_POST["\162\x65\144\x69\162\x65\143\x74\x5f\164\157"]) : null;
$current_user = get_user_by("\x69\144", $bR);
$aq->update_user_details($current_user->ID, array("\x6d\157\x32\x66\x5f\x63\x6f\156\x66\151\147\x75\162\145\x64\137\x32\x46\101\x5f\155\x65\164\x68\157\144" => ''));
$oR = '';
$o4 = "\x4d\x4f\137\62\137\106\101\103\124\x4f\122\x5f\x50\122\x4f\115\x50\124\137\x55\123\105\122\137\106\x4f\122\137\x32\106\101\137\x4d\105\x54\110\117\x44\123";
update_user_meta($bR, "\155\x6f\x32\x66\x5f\142\141\x63\x6b\x5f\164\x6f\137\x69\156\154\151\156\145\137\162\x65\147", true);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto VGs;
o6G:
$wX = new WP_Error();
$wX->add("\x65\155\160\x74\171\137\165\163\145\x72\x6e\x61\x6d\145", "\74\163\164\x72\x6f\156\x67\x3e" . __("\105\122\122\117\122", "\x6d\x69\x6e\x69\157\162\x61\156\147\145\x2d\x32\55\146\141\x63\x74\x6f\162\55\x61\165\164\150\x65\156\x74\x69\143\x61\164\x69\157\156") . "\x3c\x2f\163\164\x72\157\156\147\76\72\40" . __("\x49\x6e\166\x61\x6c\151\144\x20\x52\145\161\165\x65\163\x74\x2e", "\x6d\x69\x6e\151\x6f\162\x61\156\147\145\55\x32\55\146\141\143\x74\157\x72\55\x61\x75\x74\x68\145\x6e\x74\x69\x63\x61\x74\x69\x6f\x6e"));
return $wX;
VGs:
uAC:
}
function create_user_in_miniOrange($mJ, $vj, $Re)
{
$HT = get_user_meta($mJ, "\155\157\x32\146\137\145\x6d\141\x69\x6c\137\155\151\156\151\117\x72\x61\156\x67\x65", true);
if (!(isset($HT) and $HT != '')) {
goto RM0;
}
$vj = $HT;
RM0:
global $aq;
$qf = new Two_Factor_Setup();
$kf = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\146\137\155\151\x6e\151\157\x72\x61\156\x67\x65\x5f\141\144\155\x69\x6e");
if (!($mJ == $kf)) {
goto VeQ;
}
$vj = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\62\x66\x5f\145\x6d\x61\151\x6c");
VeQ:
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto kQ6;
}
if ($Kk["\x73\x74\x61\x74\x75\x73"] == "\105\x52\122\117\122") {
goto Nip;
}
if (strcasecmp($Kk["\x73\164\141\164\165\163"], "\125\123\105\x52\x5f\x46\x4f\125\x4e\x44") == 0) {
goto XYP;
}
if (strcasecmp($Kk["\163\164\141\164\x75\x73"], "\x55\x53\105\x52\137\116\117\124\137\x46\117\x55\116\104") == 0) {
goto dsA;
}
if (strcasecmp($Kk["\163\x74\141\x74\x75\x73"], "\125\123\105\122\x5f\106\117\125\x4e\104\x5f\125\x4e\104\x45\x52\137\104\111\x46\106\105\122\105\x4e\124\x5f\x43\125\123\x54\117\x4d\105\x52") == 0) {
goto PyT;
}
goto OOI;
Nip:
return $Kk;
goto OOI;
XYP:
$aq->update_user_details($mJ, array("\x75\163\x65\162\137\162\145\147\151\163\x74\162\x61\x74\151\157\156\x5f\x77\x69\164\x68\x5f\155\151\156\x69\x6f\162\141\156\147\x65" => "\x53\x55\103\103\105\x53\x53", "\x6d\157\x32\146\137\x75\163\x65\x72\x5f\x65\x6d\141\151\154" => $vj, "\155\157\x5f\x32\x66\x61\x63\x74\157\x72\x5f\x75\163\145\162\137\162\x65\147\151\x73\164\x72\x61\164\x69\157\156\x5f\x73\164\x61\x74\165\x73" => "\x4d\x4f\137\x32\x5f\106\x41\x43\x54\117\x52\137\x49\x4e\111\x54\x49\101\114\x49\x5a\105\137\x54\x57\117\x5f\x46\101\103\124\117\122"));
update_site_option(base64_encode("\164\x6f\x74\x61\154\125\x73\145\162\x73\x43\154\x6f\x75\144"), get_site_option(base64_encode("\x74\x6f\164\x61\154\x55\163\145\x72\163\103\154\157\x75\x64")) + 1);
$o4 = "\x4d\x4f\x5f\62\137\106\x41\x43\124\117\122\x5f\120\x52\117\x4d\x50\124\137\125\x53\x45\x52\x5f\x46\x4f\122\x5f\62\106\x41\137\115\x45\124\110\x4f\104\123";
return $Kk;
goto OOI;
dsA:
$current_user = get_user_by("\x69\144", $mJ);
$CG = json_decode($qf->mo_create_user($current_user, $vj), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto ekZ;
}
if (strcasecmp($CG["\x73\164\x61\164\165\x73"], "\123\125\103\x43\x45\123\123") == 0) {
goto l5J;
}
$Kk["\163\x74\x61\164\165\x73"] = "\105\x52\122\x4f\x52";
$Kk["\155\x65\163\163\x61\x67\x65"] = "\x54\150\x65\x72\145\40\151\163\x20\x61\156\40\151\163\x73\165\145\40\x69\x6e\x20\165\x73\145\x72\40\x63\162\145\141\x74\x69\x6f\x6e\x20\151\156\x20\155\151\x6e\151\117\162\141\156\147\145\56\40\120\154\145\x61\x73\x65\40\x73\153\151\160\40\141\x6e\144\40\143\157\156\x74\x61\x63\164\x20\155\151\x6e\x69\157\x72\141\x6e\147\x65";
return $Kk;
goto CtA;
l5J:
update_site_option(base64_encode("\x74\x6f\164\141\154\x55\x73\x65\162\x73\x43\154\157\165\x64"), get_site_option(base64_encode("\164\157\x74\141\154\125\x73\145\162\163\x43\154\157\x75\144")) + 1);
$aq->update_user_details($mJ, array("\165\163\145\162\x5f\162\x65\x67\x69\x73\x74\x72\141\x74\151\157\156\x5f\167\151\x74\150\x5f\155\151\156\151\157\x72\141\x6e\x67\x65" => "\x53\125\103\x43\x45\x53\123", "\x6d\x6f\62\146\x5f\165\163\145\162\x5f\x65\x6d\141\x69\x6c" => $vj, "\x6d\157\x5f\x32\x66\x61\x63\164\157\162\x5f\x75\x73\145\162\x5f\x72\145\147\x69\163\164\162\x61\164\x69\x6f\156\x5f\x73\164\141\x74\165\x73" => "\115\x4f\137\x32\x5f\106\x41\x43\124\x4f\122\x5f\x49\116\111\x54\x49\x41\114\x49\x5a\x45\x5f\x54\127\117\137\x46\x41\x43\x54\117\x52"));
$oR = '';
$o4 = "\x4d\117\x5f\x32\x5f\x46\x41\103\x54\x4f\122\x5f\x50\x52\x4f\115\x50\124\x5f\x55\123\x45\x52\x5f\106\117\122\137\62\x46\101\137\x4d\105\x54\110\x4f\x44\x53";
return $Kk;
CtA:
ekZ:
goto OOI;
PyT:
$oR = __("\x54\x68\x65\40\145\x6d\141\x69\154\x20\141\163\163\x6f\143\x69\x61\x74\x65\144\40\x77\x69\x74\150\40\x79\x6f\165\x72\x20\x61\x63\143\157\165\156\x74\40\x69\x73\x20\x61\154\162\x65\141\x64\171\40\x72\145\x67\151\x73\x74\145\162\x65\144\56\x20\x50\x6c\145\141\163\145\x20\143\157\156\x74\x61\143\164\x20\x79\157\165\162\40\x61\x64\155\151\156\x20\164\x6f\40\143\150\141\x6e\x67\145\40\x74\x68\x65\x20\x65\155\x61\x69\154\x2e", "\155\151\x6e\x69\157\x72\x61\x6e\x67\145\55\62\55\x66\x61\143\x74\x6f\x72\55\x61\165\x74\150\x65\x6e\x74\151\143\x61\x74\x69\x6f\156");
$Kk["\163\x74\x61\x74\x75\163"] = "\105\122\x52\117\122";
$Kk["\155\x65\163\163\141\147\145"] = $oR;
return $Kk;
OOI:
kQ6:
}
function mo2f_skip_2fa_setup()
{
if (!isset($_POST["\x6d\151\x6e\151\x6f\162\141\x6e\147\x65\137\163\153\151\160\137\62\x66\x61\137\156\157\x6e\143\x65"])) {
goto A1k;
}
$T7 = sanitize_text_field($_POST["\x6d\151\x6e\x69\157\162\x61\156\x67\x65\137\x73\x6b\x69\160\x5f\62\146\141\x5f\x6e\157\x6e\x63\x65"]);
if (!wp_verify_nonce($T7, "\155\151\x6e\151\157\x72\141\x6e\x67\x65\55\62\55\x66\141\x63\x74\157\x72\x2d\x73\153\151\160\x2d\x6e\157\x6e\143\145")) {
goto rtZ;
}
$dj = isset($_POST["\x73\145\163\x73\x69\157\156\x5f\151\144"]) ? sanitize_text_field($_POST["\163\145\163\163\151\157\x6e\x5f\x69\144"]) : null;
global $aq;
$kO = esc_url_raw($_POST["\x72\145\144\x69\x72\x65\143\x74\137\164\157"]);
$dj = sanitize_text_field($dj);
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\x66\x5f\x63\x75\x72\162\145\x6e\x74\137\x75\x73\x65\162\137\x69\144");
$aq->update_user_details($bR, array("\x6d\x6f\62\x66\137\62\146\x61\143\164\x6f\162\x5f\x65\156\141\142\x6c\x65\x5f\x32\146\x61\137\x62\x79\165\x73\145\x72\163" => "\x31"));
$this->mo2fa_pass2login($kO, $dj);
goto fdp;
rtZ:
$wX = new WP_Error();
$wX->add("\145\x6d\160\164\171\137\165\x73\x65\x72\156\141\x6d\x65", "\74\x73\x74\162\x6f\156\147\76" . __("\x45\122\122\x4f\x52", "\x6d\x69\x6e\x69\x6f\162\x61\x6e\147\x65\55\x32\x2d\146\x61\x63\164\x6f\162\55\x61\x75\x74\x68\x65\x6e\164\x69\143\x61\x74\x69\157\156") . "\74\57\163\164\x72\x6f\156\147\76\x3a\x20" . __("\x49\156\x76\x61\154\151\144\40\122\x65\x71\x75\x65\x73\x74\56", "\x6d\151\x6e\x69\157\x72\x61\x6e\147\x65\55\x32\55\x66\x61\143\164\157\x72\55\141\x75\164\x68\145\x6e\164\151\x63\141\x74\x69\157\x6e"));
return $wX;
fdp:
A1k:
}
function save_inline_2fa_method()
{
if (!isset($_POST["\x6d\151\x6e\x69\x6f\x72\x61\x6e\147\x65\x5f\151\x6e\154\x69\156\x65\137\x73\141\x76\145\x5f\62\146\x61\143\164\x6f\162\x5f\x6d\145\x74\x68\157\x64\137\x6e\x6f\x6e\143\x65"])) {
goto aYi;
}
$T7 = sanitize_text_field($_POST["\x6d\x69\156\151\157\x72\141\x6e\147\145\x5f\x69\x6e\x6c\x69\x6e\145\137\163\x61\166\145\x5f\x32\146\x61\143\x74\x6f\162\137\x6d\145\x74\150\x6f\144\137\156\x6f\156\143\x65"]);
if (!wp_verify_nonce($T7, "\x6d\x69\156\x69\157\x72\x61\156\147\145\x2d\x32\x2d\x66\141\x63\164\x6f\x72\55\x69\156\154\151\x6e\x65\x2d\x73\x61\x76\145\55\x32\x66\x61\143\164\157\162\x2d\x6d\x65\164\150\157\144\x2d\x6e\157\156\143\145")) {
goto kTY;
}
$dj = isset($_POST["\163\x65\163\x73\x69\157\x6e\137\x69\x64"]) ? sanitize_text_field($_POST["\x73\x65\163\163\151\x6f\x6e\137\x69\144"]) : null;
global $aq;
$this->miniorange_pass2login_start_session();
$oR = '';
$o4 = "\x4d\x4f\137\62\137\106\x41\x43\124\x4f\122\x5f\x50\x52\117\115\x50\x54\x5f\125\x53\105\x52\137\x46\117\x52\x5f\x32\106\101\x5f\x4d\105\124\x48\117\104\123";
$bR = MO2f_Utility::mo2f_get_transient($dj, "\x6d\157\62\146\x5f\x63\165\162\x72\145\x6e\164\137\x75\163\x65\x72\x5f\x69\x64");
$kO = isset($_POST["\x72\145\144\151\x72\x65\143\x74\137\x74\157"]) ? esc_url_raw($_POST["\162\x65\x64\151\162\145\x63\x74\x5f\x74\157"]) : null;
$current_user = get_user_by("\151\144", $bR);
$Cr = $current_user->ID;
$vj = $aq->get_user_detail("\155\157\62\x66\137\x75\163\x65\162\x5f\x65\155\141\x69\154", $current_user->ID);
$VB = $aq->get_user_detail("\x75\x73\x65\x72\137\162\145\x67\151\x73\164\162\x61\x74\151\x6f\156\x5f\x77\151\x74\x68\x5f\155\x69\156\x69\157\x72\141\x6e\x67\x65", $current_user->ID);
if ($VB == "\123\x55\x43\103\105\123\123") {
goto A6m;
}
$oR = __("\111\x6e\x76\141\x6c\151\144\40\162\x65\161\165\145\163\164\56\x20\120\x6c\145\141\163\145\x20\162\x65\147\151\163\x74\x65\x72\40\167\x69\164\x68\x20\155\x69\x6e\x69\x4f\162\141\x6e\x67\x65\x20\x74\157\x20\143\157\x6e\x66\x69\147\165\162\145\40\62\40\106\x61\143\x74\x6f\x72\40\x70\154\x75\147\151\156\56", "\155\x69\156\x69\157\x72\141\x6e\x67\x65\x2d\62\x2d\146\x61\x63\x74\157\x72\55\x61\x75\x74\x68\145\156\x74\151\x63\141\164\151\157\156");
goto b4o;
A6m:
$w6 = isset($_POST["\x6d\157\x32\146\137\163\x65\154\145\143\x74\x65\x64\137\x32\146\141\x63\x74\157\162\137\x6d\x65\x74\150\x6f\144"]) ? sanitize_text_field($_POST["\x6d\x6f\x32\146\x5f\163\145\154\x65\143\164\x65\144\x5f\62\146\x61\x63\164\157\x72\x5f\155\x65\164\150\x6f\x64"]) : "\116\x4f\x4e\105";
if ($w6 == "\117\x55\124\x20\117\x46\40\x42\101\116\x44\x20\105\x4d\101\x49\x4c") {
goto SQL;
}
if ($w6 == "\x4f\124\x50\x20\117\x56\105\x52\40\x45\x4d\x41\111\x4c") {
goto QUL;
}
if ($w6 == "\x47\x4f\117\x47\x4c\105\x20\101\125\x54\110\105\x4e\124\111\x43\101\124\117\122") {
goto kyH;
}
if (!MO2F_IS_ONPREM or $w6 == "\x4d\x4f\x42\111\x4c\x45\40\101\125\124\110\x45\116\x54\x49\x43\101\x54\111\x4f\x4e" or $w6 == "\x50\x55\123\110\x20\116\x4f\x54\x49\x46\x49\x43\101\124\x49\x4f\116\x53" or $w6 == "\x53\117\106\x54\40\124\117\x4b\105\x4e") {
goto bOJ;
}
if (!($w6 == "\x4f\x54\120\40\x4f\126\105\x52\40\124\x45\114\105\107\x52\x41\115")) {
goto x0D;
}
$w6 = "\117\x54\120\x20\117\x76\145\x72\x20\124\x65\154\145\x67\162\141\x6d";
x0D:
$aq->update_user_details($current_user->ID, array("\155\x6f\62\x66\137\x63\157\156\x66\151\147\x75\x72\x65\x64\x5f\x32\106\101\137\155\x65\164\150\x6f\144" => $w6));
goto ooZ;
bOJ:
$current_user = get_userdata($Cr);
$vj = $current_user->user_email;
$C7 = $this->create_user_in_miniOrange($Cr, $vj, $w6);
if ($C7["\163\x74\141\x74\165\x73"] == "\x45\x52\x52\x4f\122") {
goto kkD;
}
if (!($w6 == "\x4f\124\x50\40\117\x56\105\122\x20\x54\x45\x4c\x45\107\x52\101\x4d")) {
goto Wub;
}
$w6 = "\x4f\124\x50\40\117\166\x65\x72\x20\124\145\154\145\147\x72\141\x6d";
Wub:
$aq->update_user_details($current_user->ID, array("\x6d\157\x32\x66\x5f\143\157\x6e\146\x69\147\165\x72\145\144\137\62\x46\x41\x5f\x6d\145\x74\x68\157\144" => $w6));
goto WWC;
kkD:
$o4 = "\115\x4f\137\x32\137\106\101\x43\x54\117\122\x5f\120\122\x4f\x4d\x50\x54\137\125\x53\105\122\137\x46\117\x52\137\62\x46\x41\x5f\x4d\105\124\x48\x4f\104\123";
$oR = $C7["\155\145\163\163\x61\147\x65"] . __("\x53\x6b\151\x70\40\164\150\x65\40\x74\x77\157\x2d\146\141\x63\x74\x6f\162\x20\146\157\162\40\154\x6f\147\x69\x6e", "\x6d\151\x6e\x69\x6f\162\141\x6e\147\145\55\x32\55\x66\x61\x63\x74\x6f\x72\x2d\x61\x75\x74\x68\x65\156\x74\151\x63\x61\164\x69\x6f\x6e");
WWC:
ooZ:
goto Sme;
SQL:
if (!MO2F_IS_ONPREM) {
goto mVc;
}
if (get_site_option("\155\x6f\62\x66\x5f\x65\x6e\x61\142\154\145\137\145\x6d\141\151\x6c\143\x68\x61\156\147\x65")) {
goto M2k;
}
$this->mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $w6);
goto aG3;
M2k:
$aq->update_user_details($current_user->ID, array("\x6d\x6f\x32\146\x5f\105\155\141\x69\154\x56\x65\162\151\x66\151\143\141\164\151\157\156\137\x63\x6f\x6e\146\x69\147\x5f\x73\164\x61\164\x75\163" => true, "\155\x6f\62\146\x5f\143\157\x6e\x66\x69\x67\x75\162\145\144\x5f\x32\106\x41\x5f\x6d\x65\164\150\157\144" => "\x45\x6d\x61\x69\154\x20\x56\x65\x72\x69\x66\x69\x63\x61\x74\151\157\156", "\x6d\157\x5f\62\x66\x61\143\x74\157\162\x5f\165\x73\145\162\137\162\x65\147\151\x73\x74\162\x61\164\x69\157\156\137\x73\164\x61\164\165\x73" => "\x4d\x4f\x5f\62\137\106\x41\103\124\117\122\x5f\120\114\x55\x47\111\116\137\x53\x45\124\124\x49\116\107\123"));
$qf = new Two_Factor_Setup();
$qf->mo2f_update_userinfo($vj, "\117\x55\124\40\117\x46\x20\x42\101\x4e\104\40\x45\115\x41\x49\114", null, null, null);
$o4 = "\115\x4f\x5f\x32\x5f\x46\101\x43\x54\117\x52\x5f\123\x45\124\125\120\x5f\x53\x55\103\103\105\x53\123";
update_user_meta($current_user->ID, "\x65\x6d\141\151\x6c", $vj);
update_user_meta($current_user->ID, "\143\x75\162\162\x65\156\164\x4d\145\164\x68\157\144", "\117\x55\124\40\117\106\40\x42\x41\116\104\x20\x45\115\101\111\114");
aG3:
goto hb1;
mVc:
$current_user = get_userdata($Cr);
$vj = get_site_option("\x6d\157\x32\146\137\x65\x6d\x61\x69\x6c\x5f\x6d\145\x74\141\x5f\153\145\171") && !empty(get_user_meta($bR, get_site_option("\155\157\62\146\137\145\155\141\151\154\137\x6d\145\x74\x61\x5f\x6b\x65\171"), true)) ? get_user_meta($bR, get_site_option("\x6d\x6f\62\x66\137\x65\x6d\141\151\154\x5f\x6d\x65\164\141\x5f\153\x65\171"), true) : $current_user->user_email;
$C7 = $this->create_user_in_miniOrange($Cr, $vj, $w6);
if ($C7["\x73\x74\141\164\x75\x73"] == "\x45\122\122\117\x52") {
goto Le7;
}
$qf = new Two_Factor_Setup();
$qf->mo2f_update_userinfo($vj, "\117\125\x54\40\x4f\106\x20\x42\x41\116\x44\40\105\x4d\x41\111\x4c", null, null, null);
$aq->update_user_details($Cr, array("\x6d\157\62\x66\137\x45\155\x61\x69\x6c\126\x65\x72\151\x66\151\143\x61\x74\151\x6f\156\137\143\157\x6e\x66\151\x67\137\x73\x74\141\164\165\163" => true, "\x6d\157\62\146\137\x63\x6f\156\146\x69\x67\165\x72\x65\144\137\62\x46\101\x5f\155\145\164\150\x6f\x64" => "\105\x6d\141\151\x6c\x20\126\145\x72\151\x66\151\143\x61\x74\x69\157\x6e", "\155\157\x32\x66\x5f\165\x73\145\162\137\x65\x6d\x61\x69\x6c" => $vj));
$o4 = "\x4d\x4f\x5f\x32\137\x46\x41\103\124\117\x52\x5f\x53\105\124\125\x50\137\x53\125\103\x43\105\x53\123";
goto qxj;
Le7:
$o4 = "\115\x4f\x5f\x32\137\106\101\103\124\x4f\x52\137\120\x52\117\x4d\120\x54\137\x55\x53\105\122\x5f\106\117\122\137\62\106\101\x5f\x4d\x45\124\110\x4f\104\123";
$oR = $C7["\155\x65\x73\163\141\147\x65"] . __("\x53\x6b\151\160\x20\164\x68\145\40\x74\x77\x6f\55\x66\x61\143\164\x6f\x72\40\146\157\162\40\x6c\157\147\151\156", "\155\151\156\151\157\162\141\x6e\147\x65\x2d\62\55\x66\x61\x63\164\157\162\55\x61\x75\x74\x68\x65\x6e\164\151\x63\141\164\151\x6f\156");
qxj:
hb1:
goto Sme;
QUL:
$vj = get_site_option("\155\157\x32\146\x5f\x65\x6d\x61\151\154\x5f\x6d\x65\x74\x61\137\x6b\145\x79") && !empty(get_user_meta($bR, get_site_option("\x6d\157\62\146\137\x65\155\x61\x69\154\137\x6d\x65\164\x61\137\153\145\171"), true)) ? get_user_meta($bR, get_site_option("\155\157\62\x66\137\x65\x6d\x61\151\x6c\x5f\155\145\164\141\137\153\145\171"), true) : $current_user->user_email;
if (!MO2F_IS_ONPREM) {
goto w9g;
}
if (get_site_option("\155\x6f\x32\x66\x5f\x65\156\141\142\x6c\x65\x5f\x65\x6d\141\151\154\x63\x68\141\x6e\x67\145")) {
goto l5y;
}
$this->mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $w6);
goto LzW;
l5y:
$aq->update_user_details($current_user->ID, array("\155\x6f\x32\146\x5f\117\x54\x50\x4f\166\x65\x72\105\x6d\x61\151\x6c\137\x63\157\156\x66\x69\147\x5f\x73\164\x61\x74\165\x73" => true, "\x6d\x6f\x32\x66\x5f\143\157\156\146\151\147\x75\x72\145\x64\x5f\x32\x46\101\137\x6d\x65\x74\x68\157\x64" => "\x4f\x54\120\40\x4f\166\145\162\40\x45\155\141\151\x6c", "\155\x6f\137\x32\x66\141\x63\164\157\162\137\x75\163\x65\x72\x5f\162\x65\x67\151\x73\164\x72\141\x74\151\x6f\x6e\x5f\163\164\x61\x74\x75\x73" => "\x4d\117\x5f\x32\x5f\x46\101\103\x54\117\122\137\120\x4c\x55\107\111\x4e\137\x53\105\124\x54\111\116\107\123"));
$qf = new Two_Factor_Setup();
$qf->mo2f_update_userinfo($vj, "\x4f\x54\x50\137\x4f\126\x45\x52\x5f\105\x4d\x41\x49\114", null, null, null);
$o4 = "\x4d\117\137\62\x5f\x46\101\103\124\x4f\x52\137\123\105\124\x55\x50\137\x53\125\x43\x43\x45\x53\x53";
update_user_meta($current_user->ID, "\145\x6d\141\x69\154", $vj);
update_user_meta($current_user->ID, "\143\x75\x72\x72\x65\156\x74\x4d\x65\164\x68\157\144", "\x4f\x54\x50\40\117\x76\x65\162\x20\105\155\141\151\154");
LzW:
goto mRk;
w9g:
$current_user = get_userdata($Cr);
$C7 = $this->create_user_in_miniOrange($Cr, $vj, $w6);
if ($C7["\163\164\141\x74\x75\163"] == "\105\x52\122\117\x52") {
goto kUA;
}
$aq->update_user_details($current_user->ID, array("\155\157\62\146\x5f\x63\x6f\x6e\x66\x69\x67\x75\x72\x65\x64\x5f\x32\x46\x41\x5f\155\145\x74\x68\x6f\144" => $w6));
$this->mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $w6);
goto l3l;
kUA:
$o4 = "\115\x4f\x5f\62\x5f\106\x41\x43\124\117\x52\137\120\x52\117\x4d\120\x54\x5f\x55\123\105\122\x5f\x46\x4f\122\x5f\x32\106\x41\137\x4d\105\x54\110\117\104\x53";
$oR = $C7["\x6d\x65\163\x73\x61\147\145"] . __("\x53\x6b\151\x70\x20\164\x68\145\40\164\167\157\x2d\x66\x61\x63\x74\x6f\162\x20\x66\x6f\162\40\154\x6f\147\x69\156", "\155\151\156\x69\157\x72\141\156\x67\145\55\62\55\x66\x61\143\x74\x6f\162\55\x61\165\x74\150\x65\156\164\151\143\x61\164\151\157\156");
l3l:
mRk:
goto Sme;
kyH:
$this->miniorange_pass2login_start_session();
$oR = '';
$o4 = "\x4d\x4f\137\62\x5f\x46\101\103\124\x4f\122\x5f\120\122\x4f\x4d\x50\124\x5f\125\123\x45\x52\137\106\x4f\122\x5f\x32\x46\x41\137\115\105\x54\x48\117\x44\123";
$Ul = new Miniorange_Rba_Attributes();
$Cu = get_user_meta($current_user->ID, "\x6d\x6f\62\x66\137\107\x41\137\x61\x63\143\x6f\165\x6e\x74\x5f\x6e\141\155\x65", true);
$G8 = $Cu && get_site_option("\x6d\x6f\62\x66\137\145\156\141\142\x6c\x65\x5f\147\141\165\164\150\x5f\156\x61\155\145") ? $Cu : MoWpnsUtility::get_mo2f_db_option("\x6d\157\x32\x66\x5f\147\157\157\x67\154\145\x5f\141\165\x74\150\145\156\x74\151\x63\x61\164\x6f\x72\137\156\141\155\145", "\x67\x65\164\x5f\x6f\x70\164\151\157\156");
$vj = $aq->get_user_detail("\155\x6f\x32\x66\137\x75\x73\145\162\x5f\145\155\x61\x69\154", $current_user->ID);
if (MO2F_IS_ONPREM) {
goto CyC;
}
$current_user = get_userdata($Cr);
$vj = $current_user->user_email;
$f0 = $aq->get_user_detail("\x6d\157\x32\x66\x5f\165\x73\145\x72\x5f\x65\155\141\x69\154", $Cr);
if (!(!isset($f0) and !is_null($f0) and $f0 != '')) {
goto dvc;
}
$vj = $f0;
dvc:
$C7 = $this->create_user_in_miniOrange($Cr, $vj, $w6);
if ($C7["\x73\164\141\164\x75\x73"] == "\105\122\122\x4f\122") {
goto tmw;
}
$aq->update_user_details($current_user->ID, array("\155\x6f\x32\146\x5f\x63\x6f\x6e\146\151\147\x75\162\145\144\137\62\x46\x41\137\155\145\x74\x68\x6f\x64" => $w6));
$Kb = json_decode($Ul->mo2f_google_auth_service($vj, $G8), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto xX1;
}
if ($Kb["\x73\164\x61\x74\165\163"] == "\123\x55\x43\103\105\x53\x53") {
goto jcp;
}
$oR = __("\x49\156\x76\x61\x6c\x69\x64\40\162\145\x71\x75\x65\163\164\x2e\40\x50\x6c\x65\141\163\145\x20\162\145\x67\x69\163\x74\x65\x72\40\x77\151\x74\150\40\155\x69\x6e\x69\x4f\x72\x61\x6e\x67\x65\40\164\x6f\x20\143\157\x6e\146\151\x67\x75\x72\x65\x20\x32\x20\106\x61\143\164\x6f\x72\x20\x70\x6c\165\x67\151\156\x2e", "\155\x69\x6e\x69\157\x72\x61\x6e\x67\145\55\62\55\146\x61\x63\164\x6f\162\x2d\141\x75\x74\x68\x65\156\x74\151\x63\x61\x74\x69\157\156");
goto rvO;
jcp:
$C0 = array();
$C0["\147\x61\137\x71\x72\x43\157\x64\x65"] = $Kb["\x71\x72\103\157\144\x65\104\141\164\141"];
$C0["\147\141\x5f\x73\x65\143\x72\145\164"] = $Kb["\x73\145\143\162\145\x74"];
MO2f_Utility::mo2f_set_transient($dj, "\x73\145\x63\162\x65\x74\137\x67\x61", $C0["\x67\x61\x5f\163\x65\x63\x72\x65\164"]);
MO2f_Utility::mo2f_set_transient($dj, "\147\x61\x5f\x71\162\103\x6f\144\145", $C0["\147\141\137\161\x72\x43\x6f\x64\145"]);
rvO:
xX1:
goto Nbd;
tmw:
$oR = $C7["\x6d\x65\163\163\141\147\145"];
$o4 = "\x4d\117\x5f\x32\x5f\x46\x41\x43\x54\117\x52\x5f\x50\122\117\115\x50\x54\x5f\x55\x53\x45\x52\x5f\106\x4f\122\137\x32\106\x41\137\115\105\x54\x48\x4f\x44\x53";
Nbd:
goto jq1;
CyC:
$aq->update_user_details($current_user->ID, array("\x6d\157\x32\x66\x5f\x63\157\x6e\x66\151\147\x75\162\145\144\137\62\106\101\x5f\155\145\164\x68\x6f\144" => $w6));
$this->mo2f_get_onpremise_gqqrcode($dj);
jq1:
Sme:
b4o:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto Fmn;
kTY:
$wX = new WP_Error();
$wX->add("\x65\155\160\x74\x79\x5f\x75\163\x65\x72\x6e\x61\155\x65", "\74\x73\x74\x72\x6f\156\x67\76" . __("\105\x52\x52\117\122", "\x6d\151\156\151\x6f\x72\141\x6e\147\145\x2d\62\x2d\146\141\143\164\157\x72\x2d\x61\x75\164\150\x65\156\x74\x69\x63\141\164\x69\157\x6e") . "\74\57\x73\x74\x72\157\x6e\147\76\x3a\40" . __("\x49\156\x76\x61\154\x69\x64\40\122\145\161\165\x65\x73\164\x2e", "\x6d\151\156\x69\x6f\162\141\156\x67\x65\x2d\x32\x2d\x66\x61\143\164\x6f\x72\55\141\x75\164\150\145\x6e\164\151\143\x61\164\151\157\156"));
return $wX;
Fmn:
aYi:
}
function mo2f_get_onpremise_gqqrcode($dj)
{
global $aq;
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "\x67\141\x6f\x6e\x70\162\x65\x6d\56\160\150\160";
$gp = new Google_auth_onpremise();
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\157\62\146\137\143\165\x72\162\x65\156\164\x5f\165\163\145\162\137\151\x64");
$current_user = get_user_by("\151\144", $bR);
$vj = $aq->get_user_detail("\x6d\157\62\x66\x5f\x75\x73\x65\162\x5f\x65\x6d\141\x69\x6c", $current_user->ID);
$jo = $gp->createSecret();
$Kd = get_user_meta($current_user->ID, "\155\157\x32\146\137\x47\101\x5f\x61\x63\143\x6f\x75\x6e\x74\x5f\x6e\x61\155\x65", true) && get_site_option("\155\157\62\146\x5f\x65\x6e\141\x62\x6c\145\137\x67\x61\x75\164\150\x5f\156\x61\x6d\x65") ? get_user_meta($current_user->ID, "\x6d\157\x32\146\x5f\107\x41\137\141\143\x63\x6f\x75\x6e\164\137\156\x61\x6d\145", true) : MoWpnsUtility::get_mo2f_db_option("\155\x6f\62\x66\x5f\x67\157\157\147\154\x65\x5f\x61\165\164\x68\x65\x6e\x74\151\x63\141\164\157\x72\137\156\x61\155\x65", "\147\x65\x74\x5f\157\x70\164\151\157\156");
$jB = $gp->geturl($jo, $Kd, $vj);
$C0 = array();
$C0["\147\x61\137\x71\162\x43\x6f\144\145"] = $jB;
$C0["\147\141\137\x73\x65\143\x72\x65\x74"] = $jo;
$_SESSION["\155\157\62\146\x5f\x67\x6f\157\x67\154\x65\137\x61\x75\164\x68"] = $C0;
MO2f_Utility::mo2f_set_transient($dj, "\163\145\143\x72\x65\164\x5f\147\x61", $jo);
MO2f_Utility::mo2f_set_transient($dj, "\147\x61\x5f\161\162\103\x6f\x64\145", $jB);
}
function check_kba_validation($HN)
{
if (!isset($HN["\x6d\151\x6e\151\x6f\x72\141\x6e\147\145\x5f\153\x62\x61\137\x6e\x6f\x6e\x63\145"])) {
goto LOS;
}
$T7 = $HN["\x6d\151\x6e\151\x6f\x72\x61\x6e\x67\x65\137\153\x62\x61\x5f\x6e\157\x6e\x63\145"];
if (!wp_verify_nonce($T7, "\x6d\x69\156\151\157\x72\x61\x6e\x67\145\55\x32\x2d\x66\141\x63\x74\x6f\x72\x2d\x6b\x62\x61\x2d\156\157\x6e\143\x65")) {
goto y6K;
}
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["\163\145\163\x73\151\157\156\x5f\x69\x64"]) ? sanitize_text_field($_POST["\x73\145\163\163\151\x6f\156\x5f\151\144"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\146\x5f\x63\165\x72\162\x65\156\164\137\x75\163\145\162\137\151\x64");
$kO = isset($_POST["\162\145\x64\151\x72\x65\x63\x74\x5f\164\157"]) ? esc_url_raw($_POST["\162\145\144\x69\162\x65\143\164\x5f\164\x6f"]) : null;
if (isset($bR)) {
goto ced;
}
MO2f_Utility::mo2f_debug_file("\x55\163\x65\x72\40\x69\144\40\x6e\157\164\x20\146\x6f\165\156\144" . "\40\125\163\x65\162\x5f\x49\120\x2d" . $ce->get_client_ip() . "\x20\x55\163\145\x72\137\x49\144\x2d" . $bR);
$this->remove_current_activity($dj);
return new WP_Error("\151\156\x76\141\x6c\151\x64\x5f\165\x73\x65\162\x6e\141\x6d\x65", __("\74\163\164\162\x6f\156\x67\76\x45\x52\122\x4f\122\74\57\x73\x74\x72\157\x6e\147\76\72\x20\x50\x6c\145\141\x73\x65\x20\164\x72\171\x20\141\x67\141\151\156\x2e\56"));
goto AP_;
ced:
if (!(MO2f_Utility::mo2f_check_empty_or_null($_POST["\x6d\x6f\x32\146\x5f\x61\156\163\167\x65\162\x5f\x31"]) || MO2f_Utility::mo2f_check_empty_or_null($_POST["\155\157\x32\146\137\141\156\163\167\x65\x72\137\62"]))) {
goto pJl;
}
MO2f_Utility::mo2f_debug_file("\120\154\145\141\x73\x65\x20\x70\x72\157\166\x69\144\145\x20\142\x6f\164\150\40\164\x68\145\x20\x61\156\x73\167\145\x72\163\x20\157\x66\40\x4b\x42\101" . "\x20\125\x73\x65\162\137\x49\120\55" . $ce->get_client_ip() . "\40\x55\163\145\x72\x5f\x49\x64\55" . $bR);
$oR = __("\x50\x6c\x65\141\x73\x65\x20\x70\x72\157\166\151\144\x65\x20\x62\x6f\x74\x68\40\164\x68\145\x20\141\156\x73\167\145\x72\163\x2e", "\155\151\x6e\151\x6f\162\141\x6e\147\145\55\x32\55\x66\141\x63\164\157\x72\55\141\x75\164\x68\145\x6e\x74\151\x63\x61\164\151\x6f\156");
$o4 = "\115\x4f\137\x32\137\x46\x41\x43\x54\x4f\122\x5f\103\110\x41\114\x4c\x45\x4e\107\x45\137\x4b\x42\101\137\101\125\x54\110\105\116\124\x49\103\x41\x54\x49\x4f\x4e";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
pJl:
$Je = array();
$P5 = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\137\62\137\x66\141\x63\x74\157\x72\137\153\x62\x61\137\x71\165\145\x73\x74\x69\x6f\x6e\163");
$Je[0] = $P5[0]["\x71\165\145\x73\164\151\x6f\156"];
$Je[1] = sanitize_text_field($_POST["\155\x6f\62\146\137\x61\x6e\x73\167\145\162\x5f\x31"]);
$Je[2] = $P5[1]["\161\x75\145\163\164\151\x6f\156"];
$Je[3] = sanitize_text_field($_POST["\155\157\x32\x66\x5f\141\156\163\167\x65\162\x5f\x32"]);
if (MoWpnsUtility::get_mo2f_db_option("\x6d\x6f\62\x66\x5f\x65\x6e\x61\142\154\145\x5f\x72\142\x61\x5f\164\171\160\145\x73", "\x73\151\x74\x65\137\157\x70\164\x69\x6f\156") == 0) {
goto bEt;
}
$BI = isset($_POST["\x6d\157\62\x66\137\164\162\x75\163\164\137\144\x65\x76\151\143\145"]) ? $_POST["\155\x6f\62\x66\x5f\x74\162\x75\x73\x74\137\x64\x65\166\x69\143\145"] : "\x66\x61\154\163\145";
goto GO0;
bEt:
$BI = "\x6f\156";
GO0:
global $ce;
$id = MO2f_Utility::mo2f_retrieve_user_temp_values("\155\x6f\62\x66\137\164\x72\x61\x6e\163\x61\143\164\151\157\x6e\111\x64", $dj);
MO2f_Utility::mo2f_debug_file("\124\162\141\x6e\163\141\x63\x74\151\157\x6e\x20\x49\144\55" . $id . "\40\x55\163\x65\x72\x5f\111\120\55" . $ce->get_client_ip() . "\x20\x55\x73\145\x72\137\111\x64\55" . $bR);
$P1 = MO2f_Utility::mo2f_retrieve_user_temp_values("\x6d\157\x32\146\x5f\x72\142\141\137\x73\164\141\x74\x75\163", $dj);
$UH = new Customer_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\x66\137\x63\x75\x73\164\x6f\x6d\x65\x72\113\145\171");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\x32\x66\137\x61\x70\x69\x5f\153\x65\171");
$Ll = json_decode($UH->validate_otp_token("\x4b\x42\x41", null, $id, $Je, $Tp, $Lv), true);
global $aq;
$vj = $aq->get_user_detail("\155\157\x32\x66\x5f\x75\x73\145\162\x5f\x65\x6d\x61\151\x6c", $bR);
if (strcasecmp($Ll["\x73\x74\x61\x74\165\163"], "\x53\125\103\103\105\x53\x53") == 0) {
goto hqz;
}
MO2f_Utility::mo2f_debug_file("\124\x68\x65\40\141\156\163\x77\145\162\163\x20\171\x6f\165\40\x68\141\x76\145\40\160\x72\x6f\x76\x69\x64\x65\x64\40\146\157\x72\40\x4b\x42\101\40\141\x72\x65\40\x69\156\143\x6f\162\x72\145\143\164" . "\x20\125\163\x65\x72\137\111\x50\55" . $ce->get_client_ip() . "\x20\x55\x73\145\162\x5f\x49\144\x2d" . $bR);
$oR = __("\124\x68\145\40\141\156\x73\x77\145\162\163\x20\171\157\165\40\150\141\x76\145\40\x70\x72\x6f\x76\151\144\x65\144\x20\x61\162\145\40\151\x6e\x63\x6f\162\x72\x65\x63\164\x2e", "\155\151\x6e\x69\x6f\162\x61\156\147\x65\x2d\62\x2d\146\x61\x63\164\x6f\x72\55\141\x75\164\150\145\x6e\164\x69\x63\141\x74\151\x6f\156");
$o4 = "\x4d\117\137\62\137\x46\x41\103\124\x4f\x52\137\103\110\x41\114\x4c\105\116\x47\x45\137\113\102\x41\137\x41\x55\124\x48\x45\116\124\111\x43\101\x54\111\x4f\116";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto bI0;
hqz:
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\x32\146\x5f\x72\145\x6d\145\x6d\142\145\x72\x5f\x64\145\x76\151\143\145");
if ($e8 && $BI == "\x6f\x6e") {
goto z6A;
}
MO2f_Utility::mo2f_debug_file("\x4c\157\x67\x67\x65\144\40\x69\156\x20\163\x75\143\x63\x65\x73\x73\x66\165\x6c\x6c\171" . "\40\x55\163\x65\x72\x5f\x49\x50\x2d" . $ce->get_client_ip() . "\x20\125\x73\145\x72\x5f\x49\144\55" . $bR);
$this->mo2fa_pass2login($kO, $dj);
goto Mhn;
z6A:
try {
if (MO2F_IS_ONPREM) {
goto dTv;
}
$P1 = MO2f_Utility::mo2f_retrieve_user_temp_values("\155\x6f\62\146\x5f\x72\x62\x61\x5f\x73\x74\x61\164\165\163", $dj);
mo2f_register_profile($vj, "\x74\x72\x75\145", $P1, $dj);
goto Prq;
dTv:
$bR = MO2f_Utility::mo2f_get_transient($dj, "\x6d\157\62\146\137\x63\165\162\x72\x65\x6e\164\137\x75\x73\x65\x72\x5f\151\x64");
$aV = MO2f_Utility::mo2f_get_transient($dj, "\155\157\x32\x66\141\137\x72\142\x61\x5f\x61\164\x74\x72\x69\142\x75\164\x65\x73");
mo2f_register_profile($bR, null, $aV, $dj);
Prq:
} catch (Exception $mT) {
echo $mT->getMessage();
}
MO2f_Utility::mo2f_debug_file("\x52\145\155\x65\x62\145\x72\40\144\145\166\151\x63\x65\x20\154\x6f\147\x67\145\x64\40\151\x6e\40\163\165\143\x63\x65\x73\x73\x66\165\x6c\x6c\171" . "\x20\x55\163\x65\x72\137\x49\x50\55" . $ce->get_client_ip() . "\x20\x55\x73\145\x72\137\x49\144\x2d" . $bR);
$this->mo2fa_pass2login($kO, $dj);
Mhn:
bI0:
AP_:
goto a4A;
y6K:
$wX = new WP_Error();
$wX->add("\x65\155\x70\164\x79\137\x75\x73\145\x72\x6e\141\155\x65", __("\x3c\x73\x74\x72\157\x6e\147\x3e\105\x52\122\117\122\74\57\x73\164\162\x6f\156\147\76\x3a\40\111\156\x76\x61\154\x69\144\x20\x52\x65\161\165\x65\163\x74\56"));
return $wX;
a4A:
LOS:
}
function check_rba_cancalation($HN)
{
$T7 = sanitize_text_field($HN["\x6d\x6f\62\146\137\x74\x72\165\163\164\x5f\144\x65\x76\151\x63\x65\x5f\143\141\156\x63\145\x6c\x5f\x6e\157\156\x63\x65"]);
if (!wp_verify_nonce($T7, "\155\x69\x6e\x69\157\162\x61\156\147\x65\x2d\62\55\x66\x61\x63\164\x6f\x72\x2d\x74\162\165\x73\164\55\144\x65\x76\151\x63\145\55\x63\141\156\x63\145\x6c\x2d\156\157\156\x63\145")) {
goto nGG;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["\x73\145\163\x73\151\x6f\x6e\137\151\144"]) ? sanitize_text_field($HN["\x73\x65\163\163\151\157\156\137\x69\144"]) : null;
$kO = isset($HN["\x72\x65\144\151\162\145\143\164\137\x74\x6f"]) ? esc_url_raw($HN["\x72\145\144\151\162\145\143\164\137\164\x6f"]) : null;
$this->mo2fa_pass2login($kO, $dj);
goto nF0;
nGG:
$wX = new WP_Error();
$wX->add("\145\x6d\x70\x74\x79\x5f\x75\x73\x65\x72\x6e\x61\x6d\x65", "\x3c\163\164\162\x6f\156\147\x3e" . __("\x45\122\x52\117\x52", "\155\x69\156\x69\157\x72\141\x6e\147\145\55\x32\x2d\146\141\x63\x74\x6f\162\x2d\141\x75\x74\150\x65\156\x74\151\143\x61\164\x69\x6f\x6e") . "\74\x2f\163\164\x72\157\156\147\76\72\x20" . __("\x49\156\166\141\x6c\x69\x64\x20\x52\145\x71\165\x65\x73\x74\56"), "\x6d\151\x6e\151\157\x72\x61\x6e\x67\x65\55\62\x2d\x66\141\143\164\157\162\55\x61\x75\x74\150\x65\156\x74\x69\143\x61\x74\x69\x6f\x6e");
return $wX;
nF0:
}
function check_rba_validation($HN)
{
$T7 = $HN["\x6d\157\62\146\x5f\x74\162\165\x73\164\137\144\145\166\x69\143\145\x5f\143\157\156\x66\x69\162\x6d\x5f\156\157\156\x63\x65"];
if (!wp_verify_nonce($T7, "\x6d\x69\x6e\x69\x6f\162\x61\x6e\x67\x65\x2d\x32\55\x66\x61\143\x74\x6f\x72\x2d\164\x72\x75\163\x74\55\x64\145\166\151\143\145\55\143\x6f\156\146\x69\x72\x6d\x2d\x6e\157\x6e\143\x65")) {
goto rme;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["\x73\145\163\163\151\157\x6e\137\151\144"]) ? sanitize_text_field($HN["\163\x65\163\x73\151\157\156\137\x69\x64"]) : null;
try {
if (MO2F_IS_ONPREM) {
goto KSA;
}
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\x32\146\137\143\165\x72\162\145\x6e\x74\x5f\165\x73\145\162\137\151\144");
global $aq;
$vj = $aq->get_user_detail("\x6d\157\62\x66\x5f\165\163\145\x72\137\145\x6d\x61\151\x6c", $bR);
$P1 = MO2f_Utility::mo2f_retrieve_user_temp_values("\155\157\x32\146\137\162\142\141\x5f\x73\164\x61\164\165\163", $dj);
mo2f_register_profile($vj, "\x74\x72\x75\145", $P1, $dj);
goto pV5;
KSA:
$OZ = unserialize($_SESSION["\155\x6f\x32\x66\x5f\143\x75\162\162\145\x6e\x74\x5f\x75\163\145\162"]);
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\157\x32\x66\x5f\143\x75\x72\x72\145\156\x74\x5f\x75\x73\145\x72\x5f\151\x64");
$aV = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\x32\146\x61\137\162\142\x61\137\141\x74\x74\162\151\142\x75\164\145\163");
mo2f_register_profile($bR, null, $aV, $dj);
pV5:
} catch (Exception $mT) {
echo $mT->getMessage();
}
$kO = isset($HN["\162\145\144\151\x72\x65\x63\164\137\164\157"]) ? esc_url_raw($HN["\x72\x65\x64\151\x72\x65\x63\164\x5f\164\157"]) : null;
$this->mo2fa_pass2login($kO, $dj);
goto F8f;
rme:
$dj = isset($HN["\x73\x65\x73\163\x69\157\x6e\137\x69\x64"]) ? sanitize_text_field($HN["\x73\145\x73\163\151\x6f\x6e\137\151\144"]) : null;
$this->remove_current_activity($dj);
$wX = new WP_Error();
$wX->add("\145\155\x70\x74\x79\137\165\x73\x65\x72\156\141\155\x65", "\x3c\x73\x74\x72\x6f\156\147\76" . __("\x45\122\122\x4f\x52\x20", "\x6d\x69\x6e\151\x6f\x72\x61\x6e\x67\x65\x2d\62\x2d\146\x61\143\164\157\x72\55\141\x75\x74\150\x65\x6e\164\x69\143\141\164\151\x6f\156") . "\74\57\x73\164\162\x6f\x6e\x67\x3e\72" . __("\x49\156\x76\141\x6c\x69\x64\x20\x52\x65\x71\165\145\163\x74\56"), "\x6d\151\156\x69\x6f\162\x61\x6e\147\145\x2d\62\x2d\146\141\x63\164\x6f\162\x2d\x61\165\164\150\145\x6e\x74\151\x63\141\164\151\x6f\156");
return $wX;
F8f:
}
function miniorange2f_back_to_inline_registration($HN)
{
$T7 = sanitize_text_field($_POST["\x6d\151\156\x69\157\x72\x61\x6e\x67\x65\x5f\x62\141\x63\153\x5f\151\156\154\x69\x6e\145\x5f\x72\145\x67\x5f\156\157\x6e\143\x65"]);
if (!wp_verify_nonce($T7, "\x6d\x69\x6e\151\157\162\x61\156\x67\145\x2d\x32\x2d\146\x61\x63\x74\x6f\162\x2d\x62\141\x63\153\55\151\x6e\154\x69\156\145\x2d\x72\x65\x67\55\x6e\x6f\156\x63\145")) {
goto biV;
}
$dj = sanitize_text_field($HN["\x73\x65\x73\x73\151\157\x6e\x5f\151\144"]);
$kO = esc_url_raw($HN["\x72\145\x64\151\162\145\x63\164\137\164\157"]);
$o4 = "\x4d\x4f\137\x32\137\106\x41\x43\124\x4f\x52\137\x50\x52\117\115\120\x54\x5f\x55\123\105\122\x5f\106\117\x52\137\x32\x46\x41\137\x4d\105\x54\x48\x4f\x44\x53";
$oR = '';
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto x3k;
biV:
$wX = new WP_Error();
$wX->add("\x65\x6d\160\164\171\x5f\x75\x73\145\x72\156\141\155\x65", __("\x3c\x73\x74\162\157\x6e\x67\x3e\x45\x52\122\117\122\74\x2f\x73\x74\x72\x6f\x6e\147\x3e\72\40\x49\156\166\141\154\151\144\x20\122\145\x71\x75\145\x73\x74\56"));
return $wX;
x3k:
}
function check_miniorange_challenge_forgotphone($HN)
{
$T7 = sanitize_text_field($_POST["\155\x69\x6e\x69\157\x72\141\156\147\x65\x5f\146\x6f\162\147\157\164\160\150\x6f\x6e\x65"]);
if (!wp_verify_nonce($T7, "\155\151\x6e\151\157\x72\141\x6e\147\x65\x2d\62\55\146\141\143\164\x6f\x72\55\x66\157\x72\x67\157\164\x70\x68\157\x6e\145")) {
goto UEA;
}
$o4 = isset($_POST["\162\x65\x71\165\x65\163\164\137\157\x72\x69\147\151\x6e\137\x6d\145\x74\150\157\x64"]) ? sanitize_text_field($_POST["\x72\x65\161\165\x65\163\x74\137\157\x72\x69\x67\x69\156\137\x6d\x65\164\150\157\144"]) : null;
$dj = isset($_POST["\x73\145\x73\x73\151\x6f\156\137\x69\x64"]) ? sanitize_text_field($_POST["\163\x65\163\163\151\x6f\156\137\151\x64"]) : null;
$kO = isset($_POST["\162\x65\144\151\162\145\x63\164\x5f\x74\x6f"]) ? esc_url_raw($_POST["\162\145\144\151\162\x65\143\164\137\x74\x6f"]) : null;
$oR = '';
$ii = MoWpnsUtility::get_mo2f_db_option("\x6d\157\x32\x66\x5f\x65\156\141\142\x6c\x65\137\146\x6f\x72\x67\157\x74\160\150\157\156\145\137\x6b\x62\x61", "\x73\151\x74\x65\x5f\157\160\164\x69\157\x6e");
$wO = MoWpnsUtility::get_mo2f_db_option("\155\157\62\x66\137\145\x6e\x61\142\x6c\x65\137\146\157\x72\x67\x6f\x74\x70\x68\x6f\x6e\x65\137\145\x6d\x61\151\154", "\163\151\x74\145\x5f\x6f\160\x74\151\157\x6e");
$this->miniorange_pass2login_start_session();
$eO = new Customer_Setup();
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\x32\146\x5f\143\165\x72\162\145\x6e\x74\x5f\x75\163\x65\162\137\151\x64");
$current_user = get_user_by("\151\x64", $bR);
global $aq;
$GH = get_site_option("\x6d\157\x32\x66\137\x65\155\x61\x69\154\x5f\155\x65\x74\x61\137\153\x65\171") && !empty(get_user_meta($bR, get_site_option("\x6d\157\62\x66\x5f\145\x6d\x61\151\154\x5f\155\x65\x74\x61\x5f\x6b\x65\171"), true)) ? get_user_meta($bR, get_site_option("\155\x6f\x32\146\x5f\x65\155\x61\151\154\x5f\155\x65\164\141\137\x6b\145\x79"), true) : $aq->get_user_detail("\x6d\x6f\x32\146\137\165\x73\145\162\137\x65\155\x61\x69\154", $bR);
$hQ = $aq->get_user_detail("\x6d\x6f\x32\146\x5f\123\x65\x63\165\x72\151\x74\171\x51\x75\145\163\164\x69\157\156\x73\x5f\x63\x6f\156\146\x69\x67\137\163\x74\141\164\165\163", $bR);
if ($hQ && $ii && "\115\x4f\x5f\x32\137\106\x41\103\x54\117\x52\137\103\110\x41\x4c\114\x45\x4e\107\105\137\x4f\x54\120\x5f\117\126\x45\x52\x5f\x45\115\101\x49\114" !== $o4) {
goto Trk;
}
$VF = MO2f_Utility::mo2f_get_hidden_email($GH);
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\62\x66\137\143\x75\163\164\157\155\x65\162\x4b\145\x79");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\62\146\x5f\x61\160\151\137\x6b\145\x79");
$CG = json_decode($eO->send_otp_token($GH, "\x45\115\x41\111\x4c", $Tp, $Lv), true);
if (strcasecmp($CG["\163\164\141\164\x75\163"], "\123\x55\103\x43\105\x53\x53") == 0) {
goto zfX;
}
$oR = __("\105\162\x72\157\x72\40\x6f\x63\143\x75\162\x72\x65\144\40\167\x68\151\x6c\145\40\x73\x65\x6e\144\151\x6e\x67\40\117\124\120\x20\157\x76\145\162\x20\145\x6d\x61\151\x6c\56\40\120\154\x65\141\x73\x65\40\x74\x72\x79\x20\x61\x67\141\151\156\56", "\155\x69\156\151\157\162\141\156\x67\x65\55\x32\55\x66\x61\143\x74\x6f\162\x2d\141\165\x74\150\145\156\164\151\x63\x61\x74\x69\x6f\156");
goto OKN;
zfX:
$tD = array("\155\157\x32\146\55\154\157\147\x69\156\x2d\161\162\103\157\x64\x65", "\155\157\x32\x66\x5f\164\x72\x61\x6e\x73\141\143\164\x69\157\x6e\111\x64");
MO2f_Utility::unset_session_variables($tD);
MO2f_Utility::unset_cookie_variables($tD);
MO2f_Utility::unset_temp_user_details_in_table("\155\157\x32\x66\x5f\164\162\141\x6e\163\x61\143\164\151\157\156\111\x64", $dj);
MO2f_Utility::set_user_values($dj, "\x6d\x6f\x32\146\137\x6c\x6f\147\151\156\137\x6d\145\x73\163\x61\147\x65", "\101\40\x6f\156\x65\x20\164\151\155\x65\x20\160\x61\x73\x73\143\x6f\x64\x65\x20\150\x61\x73\x20\x62\145\x65\156\40\163\145\x6e\164\x20\164\157\x20\74\x62\x3e" . $VF . "\x3c\57\x62\x3e\x2e\40\x50\154\x65\x61\x73\145\40\x65\156\164\145\162\x20\164\x68\x65\40\117\x54\x50\40\x74\x6f\x20\166\145\x72\x69\146\171\x20\171\x6f\x75\x72\x20\151\144\145\156\164\x69\164\171\x2e");
MO2f_Utility::set_user_values($dj, "\x6d\x6f\x32\146\x5f\164\162\141\x6e\163\141\x63\x74\151\x6f\x6e\x49\x64", $CG["\x74\x78\x49\144"]);
$this->mo2f_transactionid = $CG["\x74\x78\111\x64"];
$oR = __("\x41\40\x6f\156\145\40\164\151\x6d\x65\x20\160\141\163\163\143\157\x64\x65\40\x68\x61\163\x20\x62\145\x65\x6e\x20\163\x65\156\164\40\164\x6f", "\x6d\x69\156\x69\x6f\x72\x61\156\147\145\55\62\55\146\141\143\x74\x6f\162\x2d\141\x75\164\150\x65\156\x74\151\143\x61\164\x69\x6f\x6e") . "\40\74\x62\76" . $VF . "\74\x2f\x62\76\56" . __("\40\120\154\145\141\x73\145\40\x65\156\164\x65\x72\40\164\x68\x65\40\x4f\124\120\x20\x74\x6f\x20\x76\145\162\151\146\171\40\171\x6f\165\x72\x20\151\x64\x65\x6e\x74\x69\x74\171\56", "\x6d\x69\156\x69\157\x72\141\156\x67\x65\x2d\62\x2d\146\x61\143\164\x6f\x72\x2d\141\165\x74\x68\145\156\x74\x69\143\x61\164\151\157\x6e");
$o4 = "\x4d\117\x5f\x32\x5f\106\101\x43\124\x4f\x52\137\x43\x48\101\x4c\x4c\105\x4e\x47\x45\137\117\x54\x50\137\117\126\105\122\137\105\x4d\x41\111\114";
OKN:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto hRH;
Trk:
$o4 = "\x4d\x4f\137\62\137\x46\x41\103\x54\x4f\122\137\103\110\x41\x4c\x4c\105\116\x47\105\137\113\x42\x41\137\x41\116\x44\137\117\x54\120\137\x4f\x56\105\x52\137\x45\x4d\101\x49\114";
$Tk = new Miniorange_Password_2Factor_Login();
$Tk->mo2f_pass2login_kba_verification($bR, $kO, $dj);
hRH:
$Tk = new Miniorange_Password_2Factor_Login();
$Tk->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto E9I;
UEA:
$wX = new WP_Error();
$wX->add("\x65\x6d\160\x74\171\x5f\x75\x73\x65\x72\x6e\x61\155\145", __("\x3c\x73\164\x72\157\x6e\x67\x3e\x45\122\x52\x4f\122\74\57\x73\x74\x72\x6f\x6e\147\76\72\40\x49\x6e\166\x61\x6c\151\x64\40\122\145\161\165\x65\x73\164\x2e"));
return $wX;
E9I:
}
function check_miniorange_alternate_login_kba($HN)
{
$T7 = $HN["\x6d\x69\156\151\x6f\162\x61\156\x67\x65\137\x61\x6c\164\x65\162\x6e\x61\x74\145\x5f\x6c\x6f\147\151\x6e\x5f\x6b\x62\x61\x5f\156\x6f\156\143\145"];
if (!wp_verify_nonce($T7, "\155\x69\156\x69\157\162\x61\156\147\145\x2d\x32\x2d\x66\141\x63\164\x6f\x72\55\141\154\164\x65\162\x6e\x61\x74\x65\x2d\154\157\147\x69\x6e\55\x6b\x62\141\x2d\x6e\x6f\x6e\143\145")) {
goto CYQ;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["\163\x65\163\x73\151\x6f\x6e\137\151\x64"]) ? $HN["\x73\145\x73\x73\151\x6f\156\x5f\x69\144"] : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\x66\x5f\143\165\162\x72\145\156\x74\137\x75\163\x65\x72\x5f\151\144");
$kO = isset($HN["\162\145\144\151\162\x65\x63\x74\137\x74\157"]) ? esc_url_raw($HN["\x72\x65\144\x69\162\x65\x63\x74\x5f\x74\157"]) : null;
$this->mo2f_pass2login_kba_verification($bR, $kO, $dj);
goto CT0;
CYQ:
$wX = new WP_Error();
$wX->add("\145\x6d\x70\164\171\137\165\163\x65\x72\x6e\141\x6d\145", __("\74\x73\x74\162\157\156\147\76\x45\x52\x52\x4f\122\x3c\57\x73\x74\x72\x6f\x6e\147\x3e\x3a\x20\x49\156\x76\141\154\151\x64\x20\122\145\x71\165\x65\x73\x74\56"));
return $wX;
CT0:
}
function check_miniorange_mobile_validation($HN)
{
global $ce, $aq;
$T7 = $HN["\155\x69\x6e\x69\x6f\162\x61\156\147\x65\x5f\155\157\x62\151\154\x65\137\x76\x61\x6c\151\x64\x61\164\x69\x6f\156\137\x6e\157\156\x63\x65"];
if (!wp_verify_nonce($T7, "\x6d\151\156\x69\157\x72\x61\x6e\147\x65\x2d\62\x2d\146\x61\143\164\x6f\162\x2d\155\157\142\x69\154\145\x2d\x76\x61\154\151\x64\x61\x74\151\157\x6e\x2d\x6e\157\156\143\x65")) {
goto o6U;
}
if (!(MO2F_IS_ONPREM && (isset($HN["\x74\170\137\x74\x79\160\x65"]) && $HN["\164\x78\137\164\171\160\145"] != "\120\116"))) {
goto g8k;
}
$jz = $HN["\x54\170\151\144\105\155\x61\x69\154"];
$kw = get_site_option($jz);
if (!($kw != '')) {
goto xq3;
}
if (!($kw != 1)) {
goto grG;
}
return new WP_Error("\x69\x6e\x76\141\154\151\x64\137\165\x73\145\162\x6e\x61\155\x65", __("\x3c\163\164\162\x6f\156\147\x3e\x45\x52\x52\117\x52\x3c\x2f\163\164\x72\157\156\147\x3e\x3a\40\x50\x6c\x65\x61\163\x65\x20\x74\x72\x79\x20\x61\147\x61\151\x6e\56"));
grG:
xq3:
g8k:
$this->miniorange_pass2login_start_session();
$dj = isset($HN["\x73\x65\x73\163\x69\x6f\x6e\x5f\x69\144"]) ? sanitize_text_field($HN["\163\145\x73\163\x69\x6f\x6e\137\x69\x64"]) : null;
$id = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\62\x66\137\x74\162\141\156\163\x61\x63\x74\151\x6f\156\x49\144");
MO2f_Utility::mo2f_debug_file("\x54\x72\141\156\163\141\x63\x74\151\157\x6e\137\151\144\55" . $id . "\x20\x55\163\145\x72\x5f\x49\x50\x2d" . $ce->get_client_ip());
$kO = isset($HN["\162\145\144\x69\x72\145\143\164\x5f\x74\x6f"]) ? esc_url_raw($HN["\162\x65\x64\x69\162\145\143\164\x5f\164\x6f"]) : null;
$Vn = new Two_Factor_Setup();
$CG = $Vn->check_mobile_status($id);
$C7 = json_decode($CG, true);
if (!MO2F_IS_ONPREM) {
goto EhP;
}
if (!get_site_option("\155\x6f\x32\x66\x5f\162\145\x6d\x65\155\x62\x65\162\137\x64\145\166\151\143\145")) {
goto jtL;
}
if (!(MoWpnsUtility::get_mo2f_db_option("\x6d\157\x32\x66\137\x65\156\x61\x62\x6c\x65\137\162\x62\x61\137\x74\171\x70\145\163", "\163\x69\164\145\137\x6f\160\x74\x69\157\x6e") == 0)) {
goto k_K;
}
try {
$OZ = unserialize($_SESSION["\155\x6f\x32\x66\137\x63\x75\162\x72\x65\156\164\137\x75\x73\x65\x72"]);
$bR = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\x32\x66\137\143\165\162\x72\x65\x6e\164\x5f\x75\x73\145\162\137\x69\x64");
$aV = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\62\146\x61\x5f\162\x62\x61\x5f\x61\164\164\x72\x69\142\x75\164\x65\163");
mo2f_register_profile($bR, null, $aV, $dj);
} catch (Exception $mT) {
echo $mT->getMessage();
}
k_K:
jtL:
$mJ = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\x32\146\137\x63\165\162\x72\x65\156\x74\x5f\165\163\145\162\137\x69\x64");
if ("\115\117\x5f\x32\137\x46\x41\x43\124\x4f\x52\x5f\x50\x4c\x55\x47\x49\116\137\123\x45\124\x54\111\116\x47\x53" != $aq->get_user_detail("\x6d\x6f\x5f\62\x66\141\x63\164\157\x72\x5f\x75\163\145\x72\137\x72\x65\147\x69\163\x74\x72\x61\164\x69\157\x6e\137\163\x74\141\x74\x75\x73", $mJ) && MoWpnsUtility::get_mo2f_db_option("\155\x6f\x32\x66\x5f\144\151\x73\x61\142\154\145\137\153\142\x61", "\163\151\164\145\x5f\157\160\x74\151\x6f\156") != 1) {
goto iKg;
}
$aq->update_user_details($mJ, array("\x6d\x6f\x5f\x32\146\141\x63\x74\157\x72\137\165\163\x65\162\x5f\162\x65\147\x69\163\164\x72\x61\164\x69\157\156\137\x73\164\x61\164\165\163" => "\115\x4f\x5f\62\x5f\106\101\103\124\x4f\122\x5f\120\114\x55\x47\x49\x4e\137\123\x45\x54\124\x49\x4e\107\123", "\x6d\x6f\62\x66\x5f\x45\155\141\x69\154\x56\x65\162\x69\146\x69\143\141\x74\x69\157\x6e\x5f\143\x6f\x6e\146\151\x67\x5f\163\x74\141\x74\x75\163" => true, "\155\x6f\x32\146\137\143\x6f\x6e\x66\x69\x67\x75\162\x65\144\137\x32\106\101\137\155\x65\x74\150\157\x64" => "\x45\x6d\x61\151\154\40\x56\145\x72\x69\x66\x69\143\x61\164\151\157\x6e"));
MO2f_Utility::mo2f_debug_file("\115\x4f\40\121\x52\55\x63\157\144\145\x2f\x70\165\x73\x68\x20\x6e\x6f\164\x69\x66\151\143\x61\x74\x69\157\156\x20\x61\x75\164\x68\40\x6c\157\x67\x67\x65\144\40\x69\156\x20\x73\165\x63\x63\145\163\163\146\165\154\154\171" . "\40\125\x73\145\x72\137\x49\120\55" . $ce->get_client_ip());
$this->mo2fa_pass2login($kO, $dj);
goto Z3p;
iKg:
$aq->update_user_details($mJ, array("\x6d\x6f\137\62\x66\x61\143\x74\157\x72\x5f\165\x73\145\162\137\162\x65\147\151\x73\x74\162\x61\x74\151\x6f\156\137\163\164\141\164\165\x73" => "\115\117\137\62\x5f\x46\x41\103\x54\x4f\122\137\113\x42\101\137\x53\105\124\125\120\x5f\122\105\x4d\101\111\116\111\x4e\107", "\155\157\x32\x66\137\x45\x6d\141\151\154\126\145\x72\151\x66\x69\143\141\164\151\157\x6e\x5f\143\x6f\x6e\146\151\147\137\x73\x74\141\x74\165\163" => true, "\x6d\157\x32\x66\x5f\x63\x6f\156\146\x69\x67\x75\162\145\144\137\x32\106\101\x5f\155\x65\164\x68\x6f\x64" => "\105\x6d\141\151\x6c\x20\126\x65\x72\151\146\151\x63\x61\x74\151\157\x6e"));
$o4 = "\x4d\117\137\x32\137\x46\x41\x43\124\x4f\122\137\120\122\117\115\120\124\137\125\123\105\122\137\106\x4f\x52\x5f\62\x46\x41\137\115\105\x54\110\117\104\123";
$this->miniorange_pass2login_form_fields($o4, '', $kO, null, $dj);
Z3p:
EhP:
if (json_last_error() == JSON_ERROR_NONE) {
goto KE1;
}
MO2f_Utility::mo2f_debug_file("\111\x6e\166\141\154\x69\144\137\x75\x73\x65\x72\156\141\x6d\145" . "\x20\125\163\145\162\x5f\x49\x50\55" . $ce->get_client_ip());
$this->remove_current_activity($dj);
return new WP_Error("\x69\156\166\141\154\151\144\137\165\x73\x65\x72\156\141\155\x65", __("\74\x73\x74\x72\x6f\x6e\x67\x3e\x45\x52\122\117\122\x3c\x2f\163\x74\162\x6f\x6e\147\x3e\x3a\40\120\154\x65\141\x73\x65\40\x74\x72\x79\x20\x61\x67\x61\x69\156\56"));
goto Cea;
KE1:
if ($C7["\x73\164\141\164\165\x73"] == "\x53\125\x43\103\105\x53\x53") {
goto tof;
}
MO2f_Utility::mo2f_debug_file("\111\x6e\166\141\x6c\x69\x64\137\165\163\x65\x72\x6e\x61\155\x65" . "\x20\125\163\145\162\137\x49\x50\x2d" . $ce->get_client_ip());
$this->remove_current_activity($dj);
return new WP_Error("\x69\x6e\x76\x61\x6c\151\x64\x5f\165\x73\x65\162\156\141\155\x65", __("\74\163\164\162\157\x6e\147\76\105\122\122\117\x52\74\x2f\x73\x74\x72\x6f\156\x67\x3e\x3a\x20\120\x6c\x65\x61\x73\145\40\x74\x72\x79\x20\x61\x67\x61\x69\156\56"));
goto ebD;
tof:
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\146\137\x72\145\x6d\x65\155\x62\x65\x72\x5f\x64\x65\166\151\143\x65");
if ($e8) {
goto mkH;
}
MO2f_Utility::mo2f_debug_file("\x4d\117\40\x51\122\x2d\x63\x6f\144\x65\x2f\160\165\x73\x68\40\x6e\x6f\x74\151\146\151\x63\141\x74\151\157\x6e\x20\x61\165\x74\150\x20\154\157\x67\147\x65\144\40\151\156\40\163\165\143\143\145\163\163\146\x75\x6c\x6c\x79" . "\x20\x55\163\145\162\137\x49\120\55" . $ce->get_client_ip());
$this->mo2fa_pass2login($kO, $dj);
goto l_g;
mkH:
$o4 = "\x4d\x4f\137\62\137\x46\101\103\x54\117\122\137\122\x45\x4d\105\x4d\102\x45\122\137\x54\122\x55\x53\x54\105\x44\x5f\104\x45\x56\111\103\105";
MO2f_Utility::mo2f_debug_file("\122\x65\x6d\145\x6d\142\x65\x72\40\144\145\x76\x69\143\x65\40\x66\x6c\x6f\167\40\x70\x72\x6f\155\160\164\145\x64" . "\x20\125\163\145\x72\137\111\120\x2d" . $ce->get_client_ip());
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
l_g:
ebD:
Cea:
goto g20;
o6U:
$wX = new WP_Error();
$wX->add("\x65\155\x70\164\171\x5f\165\x73\145\x72\x6e\x61\x6d\145", __("\x3c\x73\x74\x72\157\156\147\76\105\122\x52\117\x52\74\x2f\163\164\162\x6f\x6e\x67\x3e\x3a\x20\111\x6e\166\x61\154\x69\x64\40\x52\x65\161\x75\145\x73\x74\56"));
return $wX;
g20:
}
function check_miniorange_mobile_validation_failed($HN)
{
$T7 = $HN["\155\151\156\x69\x6f\x72\x61\156\147\x65\137\155\x6f\142\151\x6c\145\137\x76\141\154\151\144\141\x74\151\x6f\x6e\137\x66\x61\x69\x6c\x65\144\137\x6e\x6f\x6e\143\145"];
if (!wp_verify_nonce($T7, "\x6d\x69\156\x69\157\162\x61\x6e\x67\145\55\x32\x2d\146\141\143\164\157\162\55\155\157\x62\x69\x6c\145\55\x76\x61\x6c\151\144\x61\164\x69\x6f\156\55\x66\141\151\x6c\145\144\55\x6e\157\156\143\x65")) {
goto qBL;
}
MO2f_Utility::mo2f_debug_file("\x4d\x4f\x20\x51\122\55\143\157\x64\145\57\160\165\x73\x68\x20\156\157\164\x69\x66\x69\143\141\x74\151\157\156\x20\141\x75\x74\x68\x20\144\x65\156\151\145\x64\x2e");
$this->miniorange_pass2login_start_session();
$dj = isset($HN["\163\x65\163\163\151\x6f\x6e\137\x69\144"]) ? $HN["\163\x65\163\x73\x69\157\156\137\x69\x64"] : null;
$this->remove_current_activity($dj);
goto xem;
qBL:
$wX = new WP_Error();
$wX->add("\145\155\160\x74\x79\x5f\x75\x73\145\x72\x6e\141\155\x65", "\x3c\x73\164\x72\157\156\x67\x3e" . __("\105\x52\122\x4f\x52", "\155\x69\156\151\x6f\x72\x61\156\x67\x65\55\x32\x2d\146\x61\x63\164\157\x72\x2d\x61\x75\x74\150\x65\156\x74\151\x63\141\164\x69\x6f\x6e") . "\x3c\57\163\x74\162\x6f\x6e\147\x3e\x3a\x20" . __("\111\x6e\166\x61\x6c\x69\x64\40\x52\145\x71\165\x65\x73\164\56"), "\155\x69\x6e\151\x6f\x72\141\156\x67\x65\x2d\62\55\x66\x61\x63\x74\x6f\162\x2d\141\165\164\150\145\156\x74\x69\143\x61\x74\x69\x6f\156");
return $wX;
xem:
}
function check_miniorange_forgotphone($HN)
{
$T7 = $HN["\x6d\x69\156\x69\x6f\x72\x61\156\x67\x65\137\x66\x6f\162\x67\157\x74\x70\x68\x6f\x6e\145"];
if (!wp_verify_nonce($T7, "\155\x69\x6e\151\157\x72\x61\156\147\145\55\x32\x2d\x66\x61\x63\164\x6f\x72\55\146\157\162\x67\157\164\160\x68\157\156\145")) {
goto u2x;
}
global $aq;
$o4 = isset($HN["\x72\x65\161\x75\145\x73\x74\137\157\x72\x69\147\x69\156\x5f\155\x65\164\x68\x6f\x64"]) ? $HN["\x72\145\161\165\145\163\164\x5f\x6f\162\151\147\151\156\x5f\x6d\145\164\150\x6f\144"] : null;
$dj = isset($HN["\163\145\163\163\151\157\x6e\137\x69\144"]) ? sanitize_text_field($HN["\x73\x65\x73\163\151\157\156\137\x69\144"]) : null;
$kO = isset($HN["\x72\145\x64\x69\162\145\x63\x74\137\x74\157"]) ? esc_url_raw($HN["\x72\145\x64\151\162\x65\x63\164\137\164\x6f"]) : null;
$oR = '';
$this->miniorange_pass2login_start_session();
$eO = new Customer_Setup();
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\157\62\146\x5f\x63\x75\162\162\145\x6e\x74\137\165\x73\x65\x72\x5f\151\x64");
$current_user = get_user_by("\151\144", $bR);
$GH = $aq->get_user_detail("\155\157\x32\x66\137\165\x73\x65\162\x5f\145\155\x61\151\x6c", $bR);
$hQ = $aq->get_user_detail("\155\x6f\x32\x66\x5f\x53\x65\143\165\x72\151\x74\x79\121\165\145\x73\164\x69\x6f\x6e\163\x5f\x63\x6f\x6e\146\151\x67\137\163\164\141\x74\x75\163", $bR);
if ($hQ) {
goto va8;
}
$VF = MO2f_Utility::mo2f_get_hidden_email($GH);
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\x32\146\x5f\x63\x75\163\x74\x6f\x6d\145\x72\113\x65\171");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\x32\x66\137\141\160\x69\137\153\x65\x79");
$CG = json_decode($eO->send_otp_token($GH, "\105\x4d\101\x49\114", $Tp, $Lv), true);
if (strcasecmp($CG["\x73\164\x61\x74\165\163"], "\x53\125\x43\103\x45\x53\123") == 0) {
goto dHq;
}
$oR = __("\x45\x72\162\x6f\x72\40\157\x63\143\165\x72\162\145\144\x20\x77\150\151\154\145\x20\x73\x65\x6e\144\x69\x6e\147\x20\117\124\120\40\157\x76\x65\x72\40\x65\155\141\x69\x6c\56\40\x50\x6c\x65\141\163\x65\40\x74\162\171\x20\x61\x67\141\151\156\56", "\x6d\151\156\151\157\x72\x61\x6e\x67\145\55\62\x2d\146\x61\x63\x74\157\162\x2d\x61\x75\164\150\145\156\164\151\x63\141\164\151\x6f\x6e");
goto WfA;
dHq:
$tD = array("\155\157\x32\146\x2d\x6c\157\147\x69\x6e\55\161\162\x43\157\144\x65", "\155\x6f\62\146\137\164\x72\141\x6e\x73\141\143\x74\x69\x6f\x6e\111\x64");
MO2f_Utility::unset_session_variables($tD);
MO2f_Utility::unset_cookie_variables($tD);
MO2f_Utility::unset_temp_user_details_in_table("\155\x6f\62\146\x5f\164\162\x61\156\x73\x61\x63\x74\151\x6f\x6e\x49\144", $dj);
MO2f_Utility::set_user_values($dj, "\155\x6f\62\146\x5f\154\x6f\147\x69\x6e\137\155\x65\163\163\141\147\145", "\101\x20\157\x6e\x65\x20\164\151\155\x65\40\160\x61\163\163\143\x6f\x64\145\x20\150\141\163\40\x62\145\145\x6e\x20\163\145\x6e\164\40\164\157\40\x3c\x62\76" . $VF . "\74\x2f\x62\x3e\56\40\120\x6c\x65\141\x73\x65\x20\145\x6e\164\x65\x72\x20\x74\150\145\x20\x4f\x54\120\x20\164\157\x20\166\145\162\x69\146\x79\40\171\157\x75\x72\40\x69\x64\x65\156\164\151\x74\171\56");
MO2f_Utility::set_user_values($dj, "\155\x6f\62\x66\x5f\164\162\141\156\x73\141\143\x74\x69\157\x6e\x49\144", $CG["\x74\170\111\x64"]);
$this->mo2f_transactionid = $CG["\164\170\111\x64"];
$oR = __("\x41\40\x6f\156\145\x20\x74\151\x6d\x65\40\x70\141\x73\163\x63\x6f\x64\x65\x20\x68\x61\163\40\142\x65\145\x6e\40\x73\145\156\164\40\x74\157", "\x6d\x69\x6e\151\x6f\x72\141\x6e\x67\145\55\62\x2d\146\x61\x63\164\157\x72\55\141\165\x74\x68\145\156\164\151\x63\141\x74\151\157\x6e") . "\x20\x3c\142\76" . $VF . "\74\x2f\x62\x3e\56" . __("\x20\120\154\x65\x61\x73\x65\40\x65\x6e\164\x65\x72\40\x74\x68\145\40\117\124\120\x20\164\157\x20\x76\145\162\151\146\x79\40\x79\x6f\165\x72\40\x69\x64\x65\156\164\151\x74\171\x2e", "\155\x69\156\151\x6f\162\141\x6e\x67\145\55\62\x2d\x66\141\x63\164\x6f\162\55\141\165\164\150\145\156\x74\151\143\x61\164\151\x6f\x6e");
$o4 = "\x4d\117\137\62\137\x46\101\x43\124\x4f\122\x5f\x43\110\101\x4c\x4c\105\x4e\107\x45\x5f\x4f\124\x50\137\x4f\126\105\x52\137\x45\115\x41\111\114";
WfA:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto bCU;
va8:
$o4 = "\115\117\x5f\62\x5f\x46\101\x43\x54\x4f\x52\137\x43\110\x41\114\x4c\x45\116\x47\105\137\113\x42\101\137\101\x4e\x44\x5f\x4f\x54\120\x5f\117\x56\x45\122\137\105\x4d\101\x49\x4c";
$Tk = new Miniorange_Password_2Factor_Login();
$Tk->mo2f_pass2login_kba_verification($bR, $kO, $dj);
bCU:
$Tk = new Miniorange_Password_2Factor_Login();
$Tk->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto g9E;
u2x:
$wX = new WP_Error();
$wX->add("\x65\155\x70\x74\171\x5f\x75\163\x65\x72\156\x61\x6d\145", __("\74\x73\x74\x72\157\x6e\147\76\105\122\x52\117\122\74\x2f\x73\x74\x72\157\156\x67\76\72\40\x49\x6e\x76\x61\x6c\151\144\x20\x52\x65\x71\x75\145\163\164\x2e"));
return $wX;
g9E:
}
function check_miniorange_softtoken($HN)
{
$T7 = $HN["\x6d\151\156\x69\157\x72\x61\x6e\147\145\x5f\163\157\x66\x74\164\x6f\x6b\145\x6e"];
if (!wp_verify_nonce($T7, "\155\x69\156\x69\157\x72\141\156\x67\145\55\62\x2d\146\141\x63\x74\x6f\x72\x2d\x73\157\146\164\x74\x6f\x6b\x65\156")) {
goto qDx;
}
$this->miniorange_pass2login_start_session();
$dj = isset($HN["\163\x65\163\163\151\157\x6e\137\x69\144"]) ? $HN["\x73\145\x73\163\x69\x6f\156\x5f\x69\x64"] : null;
$tD = array("\x6d\x6f\62\146\55\154\157\x67\151\156\x2d\161\x72\x43\157\144\145", "\x6d\157\62\146\x5f\x74\162\141\x6e\163\141\x63\x74\x69\x6f\156\111\144");
MO2f_Utility::unset_session_variables($tD);
MO2f_Utility::unset_cookie_variables($tD);
MO2f_Utility::unset_temp_user_details_in_table("\x6d\x6f\62\x66\137\x74\162\x61\x6e\163\x61\143\164\x69\x6f\156\x49\144", $dj);
$kO = isset($HN["\x72\x65\144\x69\x72\x65\143\x74\x5f\x74\157"]) ? esc_url_raw($HN["\162\x65\x64\x69\162\145\x63\164\x5f\164\157"]) : null;
$oR = sprintf(__("\x50\x6c\x65\x61\163\145\x20\x65\156\164\x65\x72\x20\164\x68\145\40\157\x6e\x65\x20\x74\151\155\x65\x20\160\141\x73\163\x63\157\144\x65\40\x73\150\157\167\x6e\x20\151\156\40\x74\x68\x65\40\x6d\151\x6e\151\x4f\x72\x61\x6e\x67\x65\45\61\44\x73\x20\x41\x75\164\150\x65\156\x74\x69\143\141\164\157\162\45\62\x24\163\40\x61\160\160\56", "\155\151\x6e\151\157\162\x61\x6e\x67\145\55\62\55\146\141\x63\x74\x6f\x72\55\x61\x75\164\x68\x65\156\164\151\x63\x61\x74\151\157\x6e"), "\74\x62\x3e", "\74\57\x62\76");
$o4 = "\115\117\x5f\x32\137\106\101\x43\x54\x4f\x52\x5f\x43\x48\x41\114\114\105\116\107\105\x5f\x53\x4f\x46\124\x5f\124\x4f\113\105\116";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto C0L;
qDx:
$wX = new WP_Error();
$wX->add("\145\155\160\164\x79\137\x75\163\x65\162\x6e\x61\155\145", __("\74\x73\164\162\x6f\156\147\76\x45\x52\x52\117\122\74\57\x73\x74\162\157\x6e\147\76\72\x20\111\x6e\166\x61\x6c\151\144\40\x52\x65\161\x75\145\163\x74\x2e"));
return $wX;
C0L:
}
function check_miniorange_soft_token($HN)
{
$bR = '';
$T7 = sanitize_text_field($_POST["\x6d\151\x6e\151\157\x72\141\x6e\147\x65\137\x73\x6f\146\x74\x5f\x74\x6f\153\x65\x6e\x5f\156\157\156\x63\x65"]);
if (!wp_verify_nonce($T7, "\155\151\x6e\151\x6f\162\141\x6e\147\145\55\62\55\x66\141\x63\164\157\x72\55\x73\157\146\x74\x2d\x74\157\153\145\156\55\x6e\x6f\156\143\145")) {
goto YNh;
}
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["\x73\x65\x73\163\151\157\156\137\151\x64"]) ? sanitize_text_field($_POST["\x73\x65\x73\x73\x69\x6f\156\137\x69\144"]) : null;
$o4 = isset($_POST["\162\x65\x71\165\145\x73\x74\x5f\157\162\151\x67\151\156\x5f\155\145\164\150\157\144"]) ? sanitize_text_field($_POST["\162\145\161\x75\x65\x73\x74\x5f\x6f\162\151\x67\x69\x6e\x5f\x6d\x65\164\150\x6f\144"]) : null;
$kO = isset($_POST["\x72\x65\144\x69\x72\145\x63\x74\x5f\x74\x6f"]) ? esc_url_raw($_POST["\x72\x65\x64\151\162\145\143\164\x5f\x74\x6f"]) : null;
$xp = '';
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\157\62\146\x5f\x63\165\x72\x72\x65\x6e\164\137\x75\x73\145\x72\137\x69\144");
$MV = get_site_option("\155\x6f\62\x66\137\141\x74\164\x65\155\160\164\x73\137\142\x65\146\157\x72\x65\137\162\x65\x64\x69\x72\x65\143\164", 3);
if (MO2f_utility::mo2f_check_empty_or_null($_POST["\155\x6f\x32\146\141\x5f\x73\x6f\x66\x74\164\x6f\153\145\156"])) {
goto lj3;
}
$xp = sanitize_text_field($_POST["\x6d\x6f\x32\146\141\x5f\x73\157\x66\164\164\x6f\153\145\x6e"]);
if (MO2f_utility::mo2f_check_number_length($xp)) {
goto by9;
}
if ($MV > 1 || $MV == "\144\x69\163\x61\x62\x6c\145\x64") {
goto ZsM;
}
$dj = isset($_POST["\x73\145\163\163\151\x6f\156\137\x69\x64"]) ? sanitize_text_field($_POST["\163\145\163\163\x69\x6f\156\137\x69\144"]) : null;
$this->remove_current_activity($dj);
update_site_option("\x6d\x6f\x32\146\137\141\x74\164\x65\155\160\x74\x73\x5f\x62\x65\x66\157\162\x65\x5f\x72\x65\x64\151\162\145\x63\x74", 3);
if (MO2f_Utility::get_index_value("\107\114\x4f\x42\x41\114\x53", "\155\157\62\x66\137\151\x73\x5f\x61\152\x61\170\x5f\162\x65\161\165\145\x73\x74")) {
goto azs;
}
MO2f_Utility::mo2f_debug_file("\x4e\165\x6d\142\x65\162\x20\x6f\x66\40\141\164\164\x65\x6d\160\164\x73\40\145\x78\143\x65\x65\144\x65\144" . "\x20\x55\163\145\x72\x5f\x49\120\55" . $ce->get_client_ip() . "\x20\125\163\145\x72\x5f\x49\x64\55" . $bR);
return new WP_Error("\x6c\151\x6d\x69\164\x5f\x65\x78\x63\145\145\144\145\144", "\x3c\163\x74\x72\x6f\x6e\147\76\105\122\x52\117\122\x3c\x2f\163\164\162\x6f\x6e\147\x3e\x3a\x20\116\x75\x6d\142\x65\162\x20\x6f\146\40\x61\x74\x74\x65\155\160\164\163\40\x65\170\143\x65\145\144\145\x64\x2e");
goto AhA;
azs:
$b1 = array("\x72\145\x6c\x6f\x61\144" => "\x72\x65\154\x6f\141\144");
wp_send_json_success($b1);
AhA:
goto KPL;
ZsM:
update_site_option("\x6d\157\x32\146\x5f\x61\164\x74\145\x6d\x70\164\163\x5f\x62\145\146\157\x72\145\x5f\x72\x65\x64\151\162\x65\x63\x74", $MV - 1);
$oR = __("\111\x6e\x76\141\154\151\x64\40\117\x54\120\56\x20\117\x6e\154\171\40\x64\x69\x67\151\164\163\40\x77\x69\164\150\151\x6e\x20\x72\x61\x6e\147\145\x20\64\x2d\x38\x20\141\162\x65\x20\x61\x6c\154\157\x77\x65\x64\56\x20\120\x6c\x65\x61\163\x65\x20\x74\162\171\40\141\x67\x61\x69\x6e\x2e", "\155\x69\156\x69\x6f\162\x61\x6e\x67\x65\x2d\x32\x2d\x66\x61\143\164\157\162\55\x61\165\164\x68\145\x6e\x74\151\x63\141\164\151\x6f\156");
MO2f_Utility::mo2f_debug_file("\x49\156\166\x61\x6c\x69\144\40\x4f\124\x50\56\40\x4f\156\x6c\171\x20\x64\x69\x67\x69\164\x73\40\167\151\164\150\151\156\40\162\x61\156\x67\x65\x20\x34\x2d\70\40\x61\x72\x65\40\x61\x6c\154\x6f\167\x65\144" . "\x20\x55\x73\x65\x72\137\111\x50\55" . $ce->get_client_ip() . "\40\125\163\145\162\x5f\x49\144\55" . $bR);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
KPL:
by9:
goto a3H;
lj3:
if ($MV > 1 || $MV == "\x64\151\163\x61\142\x6c\145\x64") {
goto jFu;
}
$dj = isset($_POST["\x73\145\163\163\151\x6f\x6e\137\151\x64"]) ? sanitize_text_field($_POST["\x73\145\x73\163\151\157\156\x5f\x69\144"]) : null;
$this->remove_current_activity($dj);
MO2f_Utility::mo2f_debug_file("\x4e\165\155\142\145\162\40\157\x66\40\141\x74\164\x65\155\160\164\x73\x20\145\x78\143\x65\145\x64\x65\x64" . "\x55\163\x65\x72\137\x49\120\x2d" . $ce->get_client_ip() . "\40\x55\163\145\162\137\111\x64\x2d" . $bR);
return new WP_Error("\x6c\151\155\151\164\x5f\x65\x78\x63\145\145\144\x65\x64", "\74\163\x74\x72\x6f\156\147\x3e\105\x52\122\x4f\x52\x3c\x2f\x73\x74\162\x6f\156\x67\76\72\x20\116\x75\155\x62\x65\x72\x20\157\146\40\141\164\164\145\155\x70\164\x73\x20\x65\170\143\x65\x65\x64\145\144\56");
goto ch6;
jFu:
update_site_option("\155\x6f\62\146\137\x61\x74\x74\x65\x6d\160\x74\163\137\142\145\x66\157\x72\x65\x5f\x72\x65\x64\x69\162\145\x63\164", $MV - 1);
$oR = __("\120\154\x65\141\x73\x65\x20\x65\156\164\145\162\x20\x4f\x54\x50\40\x74\x6f\x20\160\x72\157\x63\145\145\144\x2e", "\155\x69\156\151\157\x72\141\x6e\147\145\x2d\x32\x2d\146\x61\143\164\157\162\55\141\165\164\150\x65\156\x74\151\x63\141\164\151\157\x6e");
MO2f_Utility::mo2f_debug_file("\x50\x6c\145\141\x73\x65\x20\145\x6e\164\145\162\40\x4f\124\x50\40\164\x6f\x20\x70\162\x6f\x63\x65\x65\144" . "\125\x73\145\162\x5f\x49\120\x2d" . $ce->get_client_ip() . "\x20\x55\x73\145\162\137\111\x64\55" . $bR);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
ch6:
a3H:
global $aq, $ce;
$GH = $aq->get_user_detail("\155\x6f\x32\x66\137\165\x73\x65\x72\x5f\145\x6d\x61\151\x6c", $bR);
if (isset($bR)) {
goto Blc;
}
$this->remove_current_activity($dj);
MO2f_Utility::mo2f_debug_file("\x55\x73\145\x72\x20\151\144\x20\156\157\164\40\x66\157\x75\156\x64" . "\x20\x55\x73\145\162\137\111\120\55" . $ce->get_client_ip() . "\x20\x55\163\145\x72\137\x49\144\x2d" . $bR . "\40\x45\155\141\151\x6c\55" . $GH);
return new WP_Error("\x69\x6e\166\x61\154\x69\x64\137\165\163\x65\162\x6e\141\155\145", __("\74\x73\x74\162\157\156\x67\x3e\x45\x52\122\x4f\122\x3c\57\163\164\162\157\156\x67\76\72\x20\x50\154\145\141\163\145\40\164\x72\171\40\x61\147\141\x69\156\x2e\x2e"));
goto OwP;
Blc:
$eO = new Customer_Setup();
$CG = '';
$current_user = get_userdata($bR);
$id = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\62\146\x5f\164\162\x61\x6e\163\141\x63\x74\151\x6f\x6e\111\x64");
MO2f_Utility::mo2f_debug_file("\124\162\141\156\x73\141\x63\x74\151\157\156\137\x69\x64\x2d" . $id . "\40\x55\163\145\x72\x5f\111\120\x2d" . $ce->get_client_ip() . "\x20\125\163\x65\162\x5f\x49\144\55" . $bR . "\x20\x45\155\141\151\154\x2d" . $GH);
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\x66\x5f\143\165\163\164\x6f\155\x65\162\x4b\145\x79");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\62\146\137\x61\x70\x69\137\x6b\145\x79");
if (isset($o4) && $o4 == "\115\x4f\137\62\x5f\x46\101\103\x54\117\x52\x5f\x43\110\101\114\114\105\116\x47\x45\137\x4f\x54\x50\x5f\117\x56\x45\122\x5f\105\115\101\111\114") {
goto Ds1;
}
if (isset($o4) && $o4 == "\115\x4f\x5f\x32\x5f\x46\101\x43\x54\x4f\122\137\x43\110\x41\114\114\105\116\107\x45\x5f\x4f\x54\x50\x5f\x4f\x56\x45\x52\137\x54\x45\x4c\105\x47\122\x41\x4d") {
goto zTj;
}
if (isset($o4) && $o4 == "\x4d\x4f\137\62\137\x46\x41\103\124\x4f\x52\137\x43\110\x41\x4c\x4c\105\116\x47\x45\x5f\x4f\124\120\x5f\117\126\x45\122\x5f\123\x4d\123") {
goto kEy;
}
if (isset($o4) && $o4 == "\115\x4f\137\62\137\106\x41\103\124\117\122\137\x43\110\x41\x4c\x4c\x45\116\x47\x45\137\120\110\x4f\116\105\137\126\x45\122\111\106\x49\103\x41\124\111\x4f\x4e") {
goto AbH;
}
if (isset($o4) && $o4 == "\x4d\117\137\62\137\106\x41\x43\x54\117\x52\137\x43\110\101\114\x4c\x45\116\x47\105\137\x53\117\106\124\137\x54\x4f\113\x45\x4e") {
goto EmT;
}
if (isset($o4) && $o4 == "\x4d\x4f\137\62\x5f\106\x41\103\x54\x4f\x52\x5f\103\110\101\x4c\x4c\105\x4e\x47\105\x5f\107\x4f\x4f\x47\x4c\x45\137\101\125\124\110\105\116\124\x49\103\x41\124\x49\117\x4e") {
goto rwP;
}
$this->remove_current_activity($dj);
return new WP_Error("\x69\x6e\166\x61\154\151\144\137\x75\163\145\x72\156\141\x6d\145", __("\x3c\163\164\x72\x6f\156\x67\x3e\105\122\x52\x4f\122\x3c\x2f\x73\164\162\157\156\x67\x3e\72\40\x49\x6e\166\x61\154\x69\x64\40\122\145\x71\165\145\x73\x74\x2e\40\x50\154\x65\141\x73\x65\40\164\162\171\x20\x61\x67\x61\x69\x6e\x2e"));
goto TFv;
Ds1:
$CG = json_decode($eO->validate_otp_token("\x45\115\101\x49\x4c", null, $id, $xp, $Tp, $Lv, $current_user), true);
goto TFv;
zTj:
$Je = get_user_meta($current_user->ID, "\x6d\157\x32\146\137\x6f\164\x70\137\164\x6f\153\x65\156", true);
$NB = get_user_meta($current_user->ID, "\155\x6f\x32\x66\137\x74\x65\x6c\x65\147\x72\x61\x6d\x5f\x74\x69\x6d\145", true);
$OL = time() - 300;
$NB = (int) $NB;
global $aq;
if ($xp == $Je) {
goto Bvn;
}
$MV = get_site_option("\155\157\x32\146\137\141\164\x74\145\155\x70\164\x73\137\142\x65\146\157\x72\145\x5f\162\145\144\x69\x72\x65\x63\x74", 3);
if ($MV > 1 || $MV == "\x64\x69\163\x61\x62\x6c\145\144") {
goto J3W;
}
$dj = isset($_POST["\163\145\163\x73\x69\x6f\x6e\137\x69\144"]) ? sanitize_text_field($_POST["\x73\145\163\x73\x69\x6f\156\x5f\151\x64"]) : null;
update_option("\x6d\x6f\62\x66\137\x61\164\164\145\x6d\x70\164\163\137\142\145\x66\157\x72\x65\137\162\x65\x64\151\162\145\143\164", 3);
$this->remove_current_activity($dj);
MO2f_Utility::mo2f_debug_file("\116\165\155\x62\145\x72\x20\157\x66\40\x61\x74\164\145\155\160\164\x73\40\145\x78\x63\145\x65\144\x65\144" . "\125\163\x65\162\x5f\111\x50\55" . $ce->get_client_ip() . "\x20\x55\163\145\x72\137\111\x64\55" . $bR);
return new WP_Error("\x6c\x69\155\x69\x74\x5f\145\x78\x63\x65\145\x64\x65\x64", "\x3c\163\164\x72\x6f\x6e\x67\76\105\x52\122\117\122\x3c\x2f\x73\164\162\x6f\156\x67\76\72\x20\116\x75\x6d\142\145\x72\40\157\146\40\141\x74\164\x65\x6d\160\x74\163\40\145\x78\x63\145\145\144\145\x64\56");
goto K2R;
J3W:
update_option("\x6d\x6f\x32\x66\137\141\x74\x74\145\x6d\160\x74\163\x5f\142\x65\146\x6f\162\x65\x5f\x72\145\144\151\162\145\x63\164", $MV - 1);
$oR = __("\x50\154\145\141\163\145\40\x65\x6e\164\x65\162\40\x4f\x54\120\40\x74\157\40\160\x72\x6f\143\x65\145\x64\x2e", "\155\x69\156\x69\x6f\x72\141\x6e\x67\145\55\62\x2d\x66\x61\143\164\157\162\55\141\x75\x74\150\145\156\x74\x69\143\141\164\x69\x6f\x6e");
MO2f_Utility::mo2f_debug_file("\117\x54\x50\x20\157\x76\x65\162\40\124\145\x6c\x65\147\x72\141\x6d\40\55\40\111\x6e\x76\141\x6c\151\144\x20\117\x54\x50" . "\x20\x55\x73\x65\x72\x5f\x49\x50\x2d" . $ce->get_client_ip() . "\40\x55\163\145\162\x5f\x49\x64\x2d" . $bR . "\40\x45\x6d\x61\151\x6c\55" . $GH);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
K2R:
goto T_i;
Bvn:
if ($OL < $NB) {
goto dne;
}
MO2f_Utility::mo2f_debug_file("\117\124\x50\x20\x68\141\x73\40\x62\x65\x65\156\40\105\x78\160\x69\x72\x65\144\40\160\154\145\x61\163\145\40\162\145\151\x6e\151\x74\151\x61\x74\145\x20\141\156\157\164\x68\145\162\x20\164\162\x61\156\163\141\143\164\x69\x6f\156" . "\x20\x55\163\145\162\x5f\111\120\x2d" . $ce->get_client_ip() . "\40\125\x73\x65\x72\x5f\x49\144\x2d" . $bR . "\x20\105\x6d\141\151\x6c\55" . $GH);
$this->remove_current_activity($dj);
return new WP_Error("\x69\156\166\x61\x6c\x69\144\x5f\165\x73\x65\x72\156\x61\x6d\x65", __("\74\163\x74\x72\157\156\147\x3e\x45\122\x52\x4f\122\x3c\x2f\x73\x74\x72\157\156\147\x3e\x3a\x20\117\124\120\x20\x68\x61\163\x20\142\x65\x65\x6e\x20\x45\170\160\151\x72\145\x64\x20\160\x6c\x65\x61\163\x65\40\x72\x65\x69\156\x69\x74\x69\141\164\145\40\x61\156\157\164\x68\x65\162\40\x74\x72\141\x6e\163\x61\x63\x74\x69\x6f\x6e\56"));
goto jWs;
dne:
update_option("\155\x6f\x32\x66\137\141\164\x74\145\x6d\x70\x74\x73\x5f\142\145\x66\x6f\162\x65\137\x72\x65\144\151\x72\x65\x63\164", 3);
if (get_option("\155\157\62\x66\x5f\x72\145\x6d\145\x6d\142\145\x72\x5f\144\x65\x76\x69\x63\145")) {
goto M3w;
}
MO2f_Utility::mo2f_debug_file("\x4f\124\x50\40\x6f\x76\x65\162\x20\124\x65\154\x65\147\162\x61\155\x20\x2d\40\x4c\157\x67\147\x65\x64\x20\x69\156\x20\x73\165\143\x63\x65\163\x73\x66\165\154\154\x79" . "\40\x55\x73\x65\162\x5f\x49\120\55" . $ce->get_client_ip() . "\x20\x55\163\x65\162\137\x49\144\x2d" . $bR . "\x20\x45\x6d\141\151\154\x2d" . $GH);
$this->mo2fa_pass2login($kO, $dj);
goto CPB;
M3w:
$o4 = "\x4d\117\137\62\x5f\x46\101\103\124\117\122\x5f\x52\105\115\x45\x4d\102\x45\x52\x5f\124\x52\x55\123\x54\105\x44\x5f\104\x45\126\111\x43\x45";
MO2f_Utility::mo2f_debug_file("\x52\x65\155\145\142\145\x72\40\x64\x65\x76\x69\x63\x65\40\x73\x65\164\165\160" . "\x20\125\163\x65\162\x5f\x49\120\x2d" . $ce->get_client_ip() . "\40\x55\163\x65\x72\137\111\144\55" . $bR . "\x20\105\x6d\x61\151\x6c\x2d" . $GH);
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
CPB:
jWs:
T_i:
goto TFv;
kEy:
$CG = json_decode($eO->validate_otp_token("\x53\x4d\123", null, $id, $xp, $Tp, $Lv), true);
goto TFv;
AbH:
$CG = json_decode($eO->validate_otp_token("\120\x48\117\x4e\105\x20\126\x45\x52\x49\x46\111\x43\x41\124\111\117\116", null, $id, $xp, $Tp, $Lv), true);
goto TFv;
EmT:
$CG = json_decode($eO->validate_otp_token("\x53\117\x46\124\x20\124\117\x4b\105\116", $GH, null, $xp, $Tp, $Lv), true);
goto TFv;
rwP:
$CG = json_decode($eO->validate_otp_token("\x47\x4f\x4f\x47\x4c\x45\x20\x41\125\124\110\105\116\124\x49\103\101\x54\117\x52", $GH, null, $xp, $Tp, $Lv), true);
TFv:
if (strcasecmp($CG["\163\x74\x61\x74\x75\163"], "\x53\125\x43\103\105\123\x53") == 0) {
goto rHI;
}
if ($MV > 1 || $MV == "\x64\x69\x73\141\142\x6c\x65\144") {
goto Nau;
}
$dj = isset($_POST["\x73\145\163\163\151\157\156\137\151\x64"]) ? sanitize_text_field($_POST["\x73\x65\163\x73\x69\x6f\156\137\151\x64"]) : null;
$this->remove_current_activity($dj);
update_site_option("\x6d\157\62\x66\x5f\141\164\x74\x65\x6d\160\x74\x73\x5f\x62\x65\146\157\162\x65\x5f\162\145\x64\x69\162\145\x63\164", 3);
if (MO2f_Utility::get_index_value("\x47\x4c\117\102\x41\x4c\123", "\155\x6f\62\x66\137\151\163\x5f\141\152\141\170\137\x72\x65\x71\165\145\x73\x74")) {
goto EPZ;
}
MO2f_Utility::mo2f_debug_file("\x4e\165\155\x62\145\162\40\157\x66\40\x61\x74\x74\x65\155\160\164\x73\x20\145\170\x63\x65\145\144\x65\144" . "\40\x55\x73\x65\x72\x5f\111\120\x2d" . $ce->get_client_ip() . "\x20\125\163\x65\x72\x5f\111\144\55" . $bR . "\x20\x45\155\141\151\154\55" . $GH);
return new WP_Error("\154\x69\x6d\x69\x74\137\145\x78\x63\145\x65\x64\145\x64", "\x3c\163\164\x72\157\x6e\147\x3e\x45\x52\x52\117\122\74\x2f\163\x74\x72\157\156\147\76\72\x20\x4e\x75\x6d\x62\x65\x72\40\157\146\40\x61\164\164\x65\155\160\164\x73\x20\145\170\143\145\x65\x64\x65\144\56");
goto pQT;
EPZ:
$b1 = array("\162\145\154\157\x61\x64" => "\162\145\154\157\141\x64");
wp_send_json_success($b1);
pQT:
goto hbR;
Nau:
MO2f_Utility::mo2f_debug_file($o4 . "\x20\x45\156\x74\x65\x72\40\167\162\x6f\156\x67\40\x4f\124\120" . "\40\125\x73\145\162\x5f\x49\120\x2d" . $ce->get_client_ip() . "\x20\x55\163\145\162\137\x49\144\x2d" . $bR . "\x20\x45\x6d\x61\151\154\55" . $GH);
update_site_option("\155\157\62\x66\x5f\x61\x74\164\145\x6d\x70\x74\x73\137\x62\145\x66\x6f\162\145\x5f\x72\145\144\151\x72\x65\143\164", $MV - 1);
$F3 = $o4 == "\x4d\x4f\x5f\x32\x5f\x46\101\x43\124\117\x52\x5f\103\x48\x41\x4c\x4c\105\x4e\107\x45\137\123\x4f\x46\x54\137\x54\x4f\x4b\x45\116" ? sprintf(__("\131\157\165\x20\x68\141\166\x65\x20\145\x6e\164\145\162\145\x64\x20\x61\x6e\x20\151\156\166\141\154\151\x64\40\x4f\124\120\56\45\61\44\61\x73\120\154\145\141\163\x65\x20\143\x6c\151\143\153\40\157\x6e\40\x25\x32\x24\x32\x73\123\x79\x6e\143\40\x54\x69\x6d\145\45\63\44\x33\x73\40\151\156\x20\x74\x68\145\40\x6d\x69\156\151\x4f\x72\x61\156\x67\145\40\101\165\x74\x68\x65\156\164\151\143\x61\164\x6f\162\x20\141\x70\160\40\164\x6f\x20\x73\x79\x6e\143\40\x79\157\165\x72\x20\x70\150\x6f\x6e\145\x20\164\151\x6d\x65\40\167\151\x74\x68\x20\x74\150\x65\40\x6d\151\156\x69\x4f\x72\x61\156\x67\145\40\163\x65\x72\166\145\x72\x73\x20\141\x6e\x64\x20\x74\162\x79\x20\141\147\x61\151\x6e\56", "\155\x69\x6e\151\157\x72\141\156\147\x65\x2d\62\55\x66\x61\143\x74\x6f\162\55\x61\165\164\x68\145\x6e\x74\151\x63\141\x74\151\x6f\x6e"), "\x3c\x62\162\x3e", "\x3c\x62\76", "\x3c\x2f\x62\x3e") : __("\111\x6e\166\141\154\151\144\40\x4f\x54\120\56\40\120\154\x65\141\x73\145\x20\x74\x72\171\x20\141\147\x61\151\156\56", "\155\151\156\151\x6f\162\141\156\147\x65\x2d\62\55\x66\141\x63\164\x6f\x72\55\141\165\164\150\x65\156\x74\x69\x63\x61\x74\x69\157\156");
$this->miniorange_pass2login_form_fields($o4, $F3, $kO, null, $dj);
hbR:
goto uaD;
rHI:
update_site_option("\x6d\157\62\146\x5f\x61\164\164\145\155\160\x74\x73\137\142\145\x66\157\162\145\137\162\145\x64\x69\162\145\143\164", 3);
$pR = $aq->get_user_detail("\155\157\137\x32\x66\x61\x63\164\x6f\x72\x5f\x75\163\145\162\137\162\x65\x67\x69\163\x74\x72\141\x74\x69\157\156\137\x73\x74\x61\x74\165\x73", $bR);
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\x66\137\x72\x65\x6d\x65\155\x62\145\162\137\144\145\166\x69\x63\x65");
if ($e8 && $pR == "\115\117\137\62\x5f\106\x41\x43\124\x4f\122\x5f\x50\x4c\x55\107\111\x4e\x5f\123\x45\124\124\x49\116\x47\x53") {
goto Nk4;
}
if ($o4 == "\115\x4f\137\62\137\106\101\x43\124\x4f\x52\137\103\x48\x41\114\x4c\105\x4e\x47\x45\137\117\124\120\x5f\117\x56\x45\x52\x5f\105\x4d\x41\x49\114" && $pR == "\x4d\x4f\x5f\62\x5f\106\101\103\124\117\x52\x5f\111\x4e\111\x54\111\101\x4c\111\x5a\105\x5f\x54\x57\117\x5f\x46\101\x43\x54\117\x52") {
goto RdV;
}
MO2f_Utility::mo2f_debug_file($o4 . "\40\114\157\x67\x67\145\x64\x20\x69\156\40\x73\x75\143\x63\145\x73\x73\146\165\154\x6c\x79" . "\x20\x55\163\145\x72\137\x49\x50\55" . $ce->get_client_ip() . "\40\x55\163\x65\x72\137\111\x64\x2d" . $bR . "\40\x45\x6d\x61\x69\154\x2d" . $GH);
$this->mo2fa_pass2login($kO, $dj);
goto xPo;
Nk4:
if (MO2F_IS_ONPREM && (MoWpnsUtility::get_mo2f_db_option("\155\x6f\x32\x66\137\145\x6e\141\142\x6c\x65\x5f\162\x62\x61\137\x74\x79\160\x65\x73", "\x73\151\164\145\137\x6f\x70\164\x69\x6f\x6e") == 0 || get_option("\155\x6f\x32\146\137\162\145\155\145\155\x62\145\x72\x5f\x64\x65\x76\x69\x63\145") && $aq->get_all_device_count_by_user($current_user->ID) >= MoWpnsUtility::get_mo2f_db_option("\x6d\x6f\62\x66\137\144\145\166\x69\143\145\137\154\151\x6d\x69\164", "\x73\151\164\145\137\x6f\160\x74\151\157\x6e"))) {
goto Nu_;
}
$o4 = "\x4d\x4f\137\x32\x5f\x46\x41\103\x54\x4f\122\137\x52\x45\115\105\x4d\102\105\122\x5f\x54\x52\x55\123\124\105\x44\x5f\104\105\x56\111\103\x45";
MO2f_Utility::mo2f_debug_file("\122\145\x6d\145\x6d\142\145\162\x20\144\145\166\151\x63\145\x20\146\154\157\x77" . "\40\x55\163\x65\162\x5f\111\120\x2d" . $ce->get_client_ip() . "\40\x55\x73\x65\162\x5f\111\x64\55" . $bR . "\40\x45\x6d\x61\151\x6c\x2d" . $GH);
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
goto grz;
Nu_:
try {
$bR = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\x32\146\137\x63\165\x72\162\145\156\164\137\x75\163\145\162\x5f\151\x64");
$aV = MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\x66\141\x5f\x72\x62\x61\137\x61\164\x74\162\151\x62\x75\164\x65\x73");
mo2f_register_profile($bR, null, $aV, $dj);
} catch (Exception $mT) {
echo $mT->getMessage();
}
MO2f_Utility::mo2f_debug_file($o4 . "\x20\114\x6f\147\147\145\x64\40\x69\156\40\163\165\143\143\145\163\x73\x66\x75\154\154\171" . "\40\x55\x73\145\x72\x5f\x49\x50\x2d" . $ce->get_client_ip() . "\40\125\163\145\162\x5f\x49\x64\55" . $bR . "\x20\105\x6d\x61\151\154\x2d" . $GH);
$this->mo2fa_pass2login($kO, $dj);
grz:
goto xPo;
RdV:
$aq->update_user_details($current_user->ID, array("\x6d\x6f\62\146\x5f\117\124\x50\117\x76\145\162\105\155\141\x69\x6c\137\x63\x6f\x6e\146\x69\147\137\x73\x74\141\164\x75\163" => true, "\155\157\x32\146\137\x63\157\x6e\146\151\147\165\x72\x65\144\137\62\106\101\x5f\x6d\145\164\150\157\144" => "\x4f\124\120\x20\x4f\166\145\x72\x20\105\x6d\x61\x69\154", "\155\157\137\62\146\141\x63\164\157\162\137\x75\163\x65\162\137\162\x65\147\151\x73\x74\162\141\x74\x69\x6f\156\137\163\164\x61\x74\x75\x73" => "\115\117\137\62\137\x46\101\x43\x54\x4f\x52\137\120\114\x55\107\111\116\137\123\105\x54\x54\111\x4e\x47\123"));
$qf = new Two_Factor_Setup();
$qf->mo2f_update_userinfo($GH, "\117\x54\x50\x5f\x4f\x56\105\x52\x5f\105\x4d\101\111\114", null, null, null);
$o4 = "\x4d\x4f\x5f\62\137\106\101\103\124\117\122\137\x53\x45\124\125\x50\x5f\123\125\103\x43\x45\x53\x53";
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
xPo:
uaD:
OwP:
goto PB_;
YNh:
$wX = new WP_Error();
$wX->add("\x65\155\160\164\171\137\165\163\145\x72\x6e\x61\155\x65", __("\x3c\163\x74\162\x6f\156\147\x3e\x45\x52\122\x4f\122\74\57\x73\164\162\x6f\x6e\x67\x3e\72\x20\x49\156\166\141\x6c\151\144\x20\x52\x65\x71\165\x65\x73\x74\x2e"));
return $wX;
PB_:
}
function check_miniorange_attribute_collection($HN)
{
$T7 = $HN["\155\x69\x6e\151\x6f\162\x61\x6e\147\145\137\141\x74\164\x72\x69\x62\x75\x74\x65\137\x63\x6f\x6c\x6c\145\x63\164\151\x6f\x6e\137\x6e\x6f\x6e\x63\145"];
if (!wp_verify_nonce($T7, "\155\151\x6e\151\157\162\x61\x6e\147\145\x2d\62\x2d\146\x61\143\164\x6f\162\55\x6c\x6f\147\151\x6e\x2d\x61\x74\164\x72\151\x62\165\164\x65\x2d\x63\157\x6c\x6c\145\143\x74\x69\x6f\156\x2d\x6e\x6f\x6e\143\145")) {
goto c_j;
}
$this->miniorange_pass2login_start_session();
$d0 = isset($HN["\x73\x65\163\163\151\x6f\156\x5f\151\x64"]) ? sanitize_text_field($HN["\x73\x65\163\163\x69\x6f\156\x5f\151\144"]) : null;
$bR = MO2f_Utility::mo2f_get_transient($d0, "\x6d\157\x32\146\137\143\165\x72\162\x65\x6e\x74\x5f\x75\x73\x65\x72\137\151\x64");
$OZ = get_user_by("\151\x64", $bR);
$aV = isset($HN["\x6d\151\x6e\x69\x6f\162\141\x6e\147\145\137\x72\x62\141\x5f\141\164\164\162\x69\x62\165\x72\x65\163"]) ? $HN["\x6d\151\x6e\151\x6f\162\141\156\147\145\x5f\x72\x62\x61\x5f\141\164\x74\162\151\142\x75\x72\145\163"] : null;
$kO = isset($HN["\162\x65\144\x69\x72\x65\143\x74\137\x74\x6f"]) ? esc_url_raw($HN["\162\145\144\x69\x72\145\x63\164\137\164\157"]) : null;
$this->miniorange_initiate_2nd_factor($OZ, $aV, $kO, null, $d0);
goto cl9;
c_j:
$wX = new WP_Error();
$wX->add("\145\x6d\x70\x74\x79\x5f\165\x73\x65\x72\156\x61\x6d\x65", __("\x3c\x73\164\x72\x6f\156\x67\x3e\105\122\122\x4f\x52\74\57\163\x74\162\157\156\147\x3e\x3a\x20\x49\156\166\141\x6c\x69\144\40\x52\x65\161\165\x65\163\164\x2e"));
return $wX;
cl9:
}
function check_miniorange_inline_skip_registration($HN)
{
$wX = new WP_Error();
$wX->add("\x65\155\160\164\x79\x5f\165\163\x65\162\156\x61\x6d\x65", __("\74\163\x74\x72\x6f\156\147\76\105\x52\x52\x4f\x52\x3c\57\x73\x74\x72\x6f\x6e\147\76\72\40\111\x6e\166\x61\x6c\x69\144\x20\122\x65\x71\x75\x65\163\x74\x2e"));
}
function miniorange_pass2login_redirect()
{
do_action("\155\x6f\62\x66\x5f\x6e\x65\164\x77\157\x72\x6b\137\x69\x6e\151\x74");
global $aq, $ce;
$Uu = get_site_option("\x6d\x6f\x32\146\137\x6c\141\x73\x74\x5f\164\x72\141\x6e\x73\x61\x63\164\x69\157\x6e") - time();
if (!(intval(abs(round($Uu / 86400))) > 20)) {
goto wuc;
}
$eO = new Customer_Cloud_Setup();
$eO->mo2f_send_email_active_usage();
update_site_option("\155\157\x32\x66\137\x6c\x61\x73\164\137\164\162\x61\x6e\163\141\143\x74\x69\157\x6e", time());
wuc:
if (MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\x6f\62\146\x5f\x6c\x6f\147\x69\x6e\x5f\x6f\160\x74\151\157\156", "\147\145\x74\x5f\157\x70\164\151\x6f\x6e")) {
goto YV2;
}
if (!isset($_POST["\x6d\151\x6e\x69\157\x72\141\156\147\x65\x5f\x6c\157\147\x69\156\x5f\156\x6f\x6e\143\x65"])) {
goto FMv;
}
$T7 = sanitize_text_field($_POST["\155\x69\x6e\x69\x6f\x72\x61\156\147\145\137\154\x6f\x67\151\x6e\x5f\x6e\157\x6e\143\x65"]);
$d0 = isset($_POST["\x73\x65\x73\163\151\157\156\x5f\x69\x64"]) ? sanitize_text_field($_POST["\163\145\x73\163\151\157\x6e\137\151\x64"]) : null;
if (!is_null($d0)) {
goto Kln;
}
$d0 = $this->create_session();
Kln:
if (!wp_verify_nonce($T7, "\x6d\151\156\x69\x6f\162\141\156\147\x65\x2d\62\x2d\146\x61\143\x74\x6f\162\x2d\x6c\x6f\147\151\156\x2d\x6e\157\156\x63\x65")) {
goto pfs;
}
$this->miniorange_pass2login_start_session();
$GR = new Miniorange_Mobile_Login();
$Sz = '';
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["\155\x6f\x32\x66\141\x5f\x75\x73\x65\162\x6e\141\155\x65"])) {
goto Lby;
}
$Sz = sanitize_text_field($_POST["\x6d\157\x32\146\141\x5f\x75\163\x65\162\156\x61\155\x65"]);
goto s3Y;
Lby:
MO2f_Utility::set_user_values($d0, "\155\157\x32\146\x5f\154\157\147\151\x6e\x5f\155\x65\x73\163\141\x67\x65", "\120\x6c\145\x61\163\x65\x20\x65\x6e\164\145\x72\x20\x75\x73\x65\x72\156\141\155\x65\40\x74\157\40\x70\162\x6f\x63\145\145\x64");
$GR->mo_auth_show_error_message();
return;
s3Y:
if (username_exists($Sz) || email_exists($Sz)) {
goto kaW;
}
$GR->remove_current_activity($d0);
MO2f_Utility::mo2f_debug_file("\111\x6e\x76\x61\x6c\151\x64\40\165\163\145\162\x6e\x61\155\x65\x2e" . "\x20\x55\x73\x65\x72\x5f\x49\x50\x2d" . $ce->get_client_ip());
MO2f_Utility::set_user_values($d0, "\x6d\x6f\x32\x66\x5f\154\157\x67\151\156\137\155\x65\x73\x73\x61\147\x65", "\x49\x6e\166\141\154\151\x64\x20\125\163\145\x72\156\x61\155\x65\56");
$GR->mo_auth_show_error_message("\111\x6e\x76\141\154\x69\144\40\x55\163\x65\x72\156\141\x6d\145\56");
goto vlW;
kaW:
if (is_email($Sz)) {
goto U2w;
}
$user = get_user_by("\154\x6f\147\x69\x6e", $Sz);
goto iKT;
U2w:
$user = get_user_by("\x65\x6d\141\151\154", $Sz);
iKT:
$OZ = $user;
MO2f_Utility::mo2f_debug_file("\125\163\x65\162\x6e\x61\x6d\x65\40\166\x61\154\x69\144\141\x74\x65\x20\163\x75\x63\143\x65\163\163\x66\x75\154\x6c\x79" . "\x20\x55\163\145\x72\x5f\x49\120\x2d" . $ce->get_client_ip() . "\40\125\163\x65\162\x5f\111\144\x2d" . $user->ID . "\40\105\155\141\x69\x6c\x2d" . $user->user_email);
$kO = isset($_REQUEST["\162\145\144\x69\x72\x65\143\164\137\x74\x6f"]) ? esc_url_raw($_REQUEST["\162\x65\x64\x69\x72\x65\143\x74\137\x74\x6f"]) : null;
MO2f_Utility::mo2f_set_transient($d0, "\155\x6f\62\x66\x5f\143\165\x72\162\x65\x6e\164\137\165\163\x65\162\x5f\151\x64", $user->ID, 600);
MO2f_Utility::mo2f_set_transient($d0, "\x6d\x6f\x32\x66\x5f\x31\163\164\146\x61\143\164\157\x72\137\x73\x74\x61\x74\x75\163", "\126\x41\114\x49\104\101\x54\x45\x5f\x53\x55\103\x43\x45\123\x53", 600);
$this->mo2f_userId = $user->ID;
$this->fstfactor = "\x56\101\114\x49\104\101\124\105\137\123\x55\x43\x43\x45\123\x53";
$tB = miniorange_get_user_role($user);
$np = $aq->get_user_detail("\155\x6f\x32\146\137\143\x6f\156\x66\151\x67\165\162\x65\144\137\x32\106\x41\x5f\155\x65\x74\x68\157\x64", $user->ID);
$vj = $aq->get_user_detail("\155\157\62\146\137\165\163\145\x72\137\x65\x6d\141\x69\x6c", $user->ID);
$Vz = $aq->get_user_detail("\155\157\x5f\62\146\141\x63\164\x6f\x72\137\165\x73\145\x72\x5f\x72\145\x67\x69\163\x74\x72\141\164\x69\x6f\x6e\x5f\x73\164\x61\164\165\x73", $user->ID);
$hQ = $aq->get_user_detail("\x6d\x6f\x32\x66\137\123\145\x63\x75\162\151\164\171\x51\x75\x65\163\164\151\x6f\156\163\137\x63\157\156\x66\151\x67\137\163\x74\141\x74\165\x73", $user->ID);
if (!MO2F_IS_ONPREM) {
goto ZwB;
}
$Vz = "\x4d\x4f\x5f\62\x5f\106\101\x43\124\117\122\137\x50\x4c\125\x47\111\x4e\x5f\x53\x45\x54\124\111\116\107\x53";
ZwB:
if ($np) {
goto EMn;
}
MO2f_Utility::set_user_values($d0, "\x6d\157\x32\x66\x5f\154\157\147\151\x6e\137\155\x65\163\163\x61\x67\x65", "\120\x6c\145\141\163\145\40\154\157\x67\151\156\x20\x69\156\x74\x6f\40\x79\x6f\x75\162\x20\141\x63\x63\157\x75\x6e\x74\x20\165\163\x69\x6e\147\40\x70\x61\x73\x73\x77\x6f\162\144\56");
$GR->mo_auth_show_success_message("\120\x6c\145\x61\163\145\40\x6c\157\x67\151\156\x20\x69\x6e\x74\157\40\x79\157\x75\162\40\x61\143\x63\157\x75\x6e\164\40\165\x73\151\x6e\147\x20\160\141\163\163\x77\157\162\x64\x2e");
update_user_meta($user->ID, "\165\163\x65\162\115\145\x73\x73\141\x67\145", "\120\154\x65\x61\163\x65\x20\154\157\x67\151\156\x20\x69\156\164\157\40\x79\157\x75\x72\x20\x61\x63\x63\157\165\156\164\x20\165\x73\151\156\x67\40\160\x61\163\x73\x77\157\x72\x64\56");
$GR->mo2f_redirectto_wp_login();
goto BlU;
EMn:
if ($vj && $Vz == "\x4d\x4f\137\62\x5f\106\101\103\124\x4f\x52\x5f\120\x4c\125\x47\111\x4e\x5f\123\105\124\124\111\116\107\123" or MO2F_IS_ONPREM and $Vz == "\115\x4f\x5f\x32\x5f\106\x41\x43\124\x4f\122\137\120\x4c\x55\107\x49\116\137\x53\105\x54\x54\x49\116\x47\x53") {
goto npi;
}
MO2f_Utility::set_user_values($d0, "\155\x6f\62\146\x5f\x6c\x6f\147\x69\x6e\x5f\x6d\145\x73\163\x61\147\x65", "\120\154\x65\141\163\x65\40\154\x6f\x67\x69\x6e\40\151\156\164\x6f\40\x79\x6f\x75\162\x20\141\143\143\157\x75\156\x74\x20\165\x73\151\156\x67\x20\x70\x61\163\163\167\x6f\162\x64\56");
$GR->mo_auth_show_success_message("\120\154\x65\141\x73\145\x20\154\x6f\x67\151\x6e\x20\151\x6e\x74\x6f\x20\x79\157\165\x72\40\x61\143\x63\x6f\165\156\164\40\x75\163\151\156\x67\40\x70\141\x73\163\167\x6f\x72\144\x2e");
update_user_meta($user->ID, "\x75\163\x65\162\115\145\163\163\x61\x67\145", "\x50\x6c\x65\141\163\145\x20\154\157\147\x69\x6e\40\x69\156\164\157\x20\171\157\165\162\x20\141\x63\143\x6f\165\156\x74\x20\165\x73\151\x6e\x67\40\160\141\x73\163\x77\x6f\162\x64\56");
$GR->mo2f_redirectto_wp_login();
goto EiB;
npi:
if (MO2f_Utility::check_if_request_is_from_mobile_device($_SERVER["\x48\x54\x54\120\x5f\x55\x53\105\122\x5f\x41\107\105\116\x54"]) && $hQ) {
goto mhM;
}
$uV = '';
if (MO2F_IS_ONPREM) {
goto UH_;
}
$uV = mo2f_get_user_2ndfactor($user);
goto Owd;
UH_:
global $aq;
$uV = $aq->get_user_detail("\155\157\x32\x66\x5f\143\157\x6e\x66\151\x67\x75\x72\x65\x64\137\x32\106\x41\137\x6d\145\164\x68\157\x64", $user->ID);
if ($uV == "\123\145\x63\x75\162\x69\164\171\40\x51\x75\145\x73\164\151\157\156\163") {
goto Yrw;
}
if ($uV == "\107\157\x6f\147\154\145\40\x41\165\164\x68\145\x6e\x74\151\143\x61\164\x6f\x72") {
goto D1t;
}
if ($uV == "\105\155\141\151\154\x20\x56\x65\x72\x69\146\x69\x63\x61\164\x69\157\156") {
goto Ixf;
}
if ($uV == "\x4f\x54\120\40\x4f\166\x65\162\x20\123\x4d\x53") {
goto gpO;
}
if ($uV == "\x4f\124\120\40\x4f\166\x65\x72\40\105\x6d\141\x69\154") {
goto lkb;
}
if ($uV == "\155\151\156\151\x4f\x72\x61\x6e\x67\x65\x20\123\157\146\164\40\x54\x6f\153\x65\156") {
goto Qfj;
}
if ($uV == "\155\x69\x6e\x69\117\x72\x61\x6e\x67\x65\x20\120\165\x73\x68\x20\x4e\157\164\151\146\151\x63\x61\x74\x69\157\156") {
goto e3l;
}
if ($uV == "\x6d\151\156\151\117\x72\141\156\147\145\x20\121\122\40\x43\x6f\x64\145\x20\x41\x75\164\150\x65\156\x74\x69\x63\141\x74\151\157\156") {
goto Mfx;
}
$uV = "\x4e\117\x4e\105";
goto MIW;
Yrw:
$uV = "\x4b\102\x41";
goto MIW;
D1t:
$uV = "\x47\x4f\117\x47\114\105\40\101\x55\124\110\x45\116\124\111\x43\x41\x54\117\x52";
goto MIW;
Ixf:
$uV = "\x45\155\141\151\154\x20\126\x65\x72\151\x66\151\x63\x61\164\x69\157\156";
goto MIW;
gpO:
$uV = "\123\115\x53";
goto MIW;
lkb:
$uV = "\x45\115\x41\111\x4c";
goto MIW;
Qfj:
$uV = "\123\117\106\x54\40\x54\x4f\x4b\105\116";
goto MIW;
e3l:
$uV = "\120\x55\x53\x48\x20\x4e\117\x54\111\106\111\x43\x41\x54\x49\x4f\x4e\x53";
goto MIW;
Mfx:
$uV = "\115\x4f\x42\111\114\105\40\x41\125\124\x48\105\x4e\x54\x49\x43\101\x54\111\117\x4e";
MIW:
Owd:
if ($uV == "\115\117\x42\x49\x4c\105\40\101\x55\x54\x48\105\x4e\x54\x49\103\101\x54\x49\117\116") {
goto yI7;
}
if ($uV == "\120\125\x53\x48\x20\x4e\x4f\x54\x49\x46\111\x43\x41\124\111\117\116\x53" || $uV == "\117\x55\x54\x20\x4f\x46\x20\102\101\x4e\x44\x20\105\115\x41\111\114") {
goto jKS;
}
if ($uV == "\x45\155\x61\x69\x6c\40\x56\145\x72\151\146\x69\143\x61\164\151\x6f\156") {
goto K7m;
}
if ($uV == "\123\x4f\106\x54\x20\x54\x4f\113\105\116" || $uV == "\x53\x4d\123" || $uV == "\x50\110\x4f\x4e\x45\40\x56\x45\x52\x49\x46\111\103\101\124\x49\117\x4e" || $uV == "\x47\x4f\117\x47\x4c\x45\x20\101\x55\x54\x48\x45\116\124\x49\x43\x41\x54\x4f\122" || $uV == "\x4f\124\120\40\x4f\166\145\162\x20\x54\145\x6c\x65\147\x72\x61\155" || $uV == "\x4f\x54\120\40\117\166\x65\162\x20\127\x68\x61\164\x73\x61\160\x70" || $uV == "\105\115\x41\x49\114" || $uV == "\117\124\x50\x20\117\x76\145\x72\x20\x45\x6d\x61\151\x6c") {
goto OX8;
}
if ($uV == "\x4b\x42\101") {
goto ERK;
}
$this->remove_current_activity($d0);
MO2f_Utility::mo2f_debug_file("\x54\x77\157\x20\x66\141\x63\164\x6f\x72\x20\x6d\x65\164\150\x6f\144\40\x68\141\163\x20\x6e\157\164\x20\x62\145\x65\x6e\x20\143\157\156\x66\151\147\165\x72\x65\144\40" . "\40\x55\x73\x65\x72\x5f\111\x50\x2d" . $ce->get_client_ip() . "\x20\125\x73\145\162\x5f\111\x64\x2d" . $OZ->ID . "\x20\x45\155\141\151\154\x2d" . $OZ->user_email);
MO2f_Utility::set_user_values($d0, "\x6d\157\62\x66\137\x6c\x6f\x67\x69\156\x5f\155\145\x73\163\141\x67\x65", "\x50\x6c\x65\x61\163\145\x20\x74\162\171\40\x61\147\141\151\x6e\40\x6f\x72\x20\143\x6f\x6e\164\x61\143\164\x20\x79\157\165\162\x20\x61\x64\155\151\156\56");
$GR->mo_auth_show_success_message();
goto VpT;
yI7:
MO2f_Utility::mo2f_debug_file("\x49\x6e\x69\x74\151\141\164\151\156\147\x20\62\x66\x61\x20\166\x61\154\x69\144\141\x74\151\157\156\x20\x74\145\155\x70\154\141\164\145\x20\x66\x6f\x72\x20" . $uV . "\x20\125\x73\145\162\137\111\120\x2d" . $ce->get_client_ip() . "\x20\x55\163\145\162\x5f\111\x64\x2d" . $OZ->ID . "\40\105\x6d\x61\x69\154\55" . $OZ->user_email);
$this->mo2f_pass2login_mobile_verification($user, $kO, $d0);
goto VpT;
jKS:
MO2f_Utility::mo2f_debug_file("\x49\156\x69\164\x69\x61\164\151\156\x67\40\62\146\x61\x20\x76\x61\x6c\151\x64\141\164\x69\157\x6e\40\x74\145\x6d\160\x6c\141\164\145\40\x66\x6f\162\40" . $uV . "\x20\x55\x73\145\x72\x5f\111\120\x2d" . $ce->get_client_ip() . "\40\x55\x73\145\162\x5f\x49\x64\x2d" . $OZ->ID . "\40\x45\x6d\x61\151\154\x2d" . $OZ->user_email);
$this->mo2f_pass2login_push_oobemail_verification($user, $uV, $kO, $d0);
goto VpT;
K7m:
MO2f_Utility::mo2f_debug_file("\111\156\x69\x74\x69\141\164\151\156\x67\x20\62\x66\141\x20\x76\141\154\x69\x64\x61\164\151\157\x6e\40\164\145\155\x70\154\141\x74\x65\40\146\157\x72\40" . $uV . "\x20\125\x73\x65\x72\137\x49\x50\x2d" . $ce->get_client_ip() . "\40\125\163\145\x72\x5f\x49\x64\55" . $OZ->ID . "\40\105\155\x61\151\x6c\55" . $OZ->user_email);
$this->mo2f_pass2login_push_oobemail_verification($user, $uV, $kO, $d0);
goto VpT;
OX8:
MO2f_Utility::mo2f_debug_file("\111\156\x69\164\x69\x61\164\x69\156\147\x20\62\x66\141\x20\x76\x61\x6c\x69\144\141\x74\x69\x6f\156\40\x74\145\x6d\x70\x6c\141\x74\145\x20\146\157\162\40" . $uV . "\40\125\x73\x65\162\x5f\111\120\55" . $ce->get_client_ip() . "\x20\125\163\x65\162\137\x49\144\55" . $OZ->ID . "\40\105\x6d\x61\151\154\55" . $OZ->user_email);
$this->mo2f_pass2login_otp_verification($user, $uV, $kO, $d0);
goto VpT;
ERK:
MO2f_Utility::mo2f_debug_file("\111\x6e\x69\x74\151\141\164\151\x6e\x67\x20\x32\146\141\40\166\141\154\151\x64\141\x74\151\x6f\x6e\x20\x74\x65\155\x70\x6c\x61\x74\145\x20\146\x6f\x72\x20" . $uV . "\x20\x55\x73\x65\162\137\x49\x50\x2d" . $ce->get_client_ip() . "\40\125\163\x65\x72\x5f\x49\144\x2d" . $OZ->ID . "\40\105\155\141\151\x6c\55" . $OZ->user_email);
$this->mo2f_pass2login_kba_verification($user->ID, $kO, $d0);
VpT:
goto Zh4;
mhM:
$this->mo2f_pass2login_kba_verification($user->ID, $kO, $d0);
Zh4:
EiB:
BlU:
vlW:
goto fBX;
pfs:
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("\x65\155\x70\x74\171\137\165\x73\x65\162\156\141\155\x65", "\x3c\x73\164\162\x6f\x6e\x67\76" . __("\105\122\x52\x4f\122", "\155\x69\x6e\151\157\162\141\156\x67\145\x2d\62\55\146\x61\143\164\x6f\162\x2d\x61\165\x74\x68\x65\156\x74\151\x63\141\164\x69\157\x6e") . "\x3c\57\x73\x74\x72\157\156\147\x3e\x3a\x20" . __("\x49\x6e\166\141\154\x69\144\40\122\x65\161\165\145\163\164\x2e"), "\x6d\x69\x6e\x69\157\x72\x61\156\147\x65\55\62\x2d\146\141\143\164\157\162\55\141\x75\x74\x68\x65\x6e\x74\151\143\141\164\151\x6f\x6e");
return $wX;
fBX:
FMv:
YV2:
if (!(isset($_GET["\x72\145\x63\x6f\156\x66\151\x67\x75\x72\145\x4d\145\164\x68\157\144"]) && is_user_logged_in())) {
goto wiJ;
}
$tV = get_current_user_id();
$N7 = isset($_GET["\x74\x72\141\x6e\x73\x61\x63\x74\151\157\x6e\x49\x64"]) ? sanitize_text_field($_GET["\x74\x72\141\x6e\163\x61\143\x74\151\157\x6e\x49\144"]) : '';
$Ft = isset($_GET["\x72\x65\x63\x6f\156\146\x69\x67\165\x72\145\x4d\x65\x74\x68\157\144"]) ? sanitize_text_field($_GET["\162\145\143\x6f\156\146\x69\147\x75\162\145\x4d\x65\x74\x68\x6f\144"]) : '';
if (get_site_option($N7) === $tV && ctype_xdigit($N7) && ctype_xdigit($Ft)) {
goto s81;
}
$ql = __("\131\157\x75\40\141\x72\145\x20\x6e\157\x74\40\x61\165\x74\150\157\162\151\x7a\145\x64\40\x74\157\40\x70\x65\162\x66\157\162\x6d\x20\164\150\x69\163\40\x61\x63\x74\x69\157\156", "\x6d\151\x6e\x69\157\162\x61\x6e\147\x65\x2d\x32\55\146\x61\143\x74\157\x72\x2d\x61\165\164\x68\x65\156\x74\x69\143\x61\x74\151\157\x6e");
$fg = __("\120\154\145\141\x73\x65\x20\x63\x6f\156\x74\x61\143\x74\40\x74\x6f\x20\x79\x6f\x75\x72\x20\141\x64\155\x69\156", "\155\x69\156\151\157\162\x61\156\147\145\55\62\x2d\x66\x61\x63\x74\x6f\x72\x2d\141\165\164\150\x65\156\x74\151\143\x61\164\x69\x6f\156");
$this->display_email_verification($ql, $fg, "\x72\x65\144");
exit;
goto AmM;
s81:
$he = get_site_option($Ft);
$aq->update_user_details($tV, array("\155\x6f\137\62\146\141\143\164\x6f\x72\137\165\163\x65\162\137\x72\x65\x67\151\163\x74\162\141\164\x69\157\156\137\x73\x74\141\x74\x75\x73" => "\115\117\137\x32\x5f\x46\x41\103\x54\117\x52\137\103\125\x53\x54\x4f\115\105\x52\137\122\105\107\111\123\x54\x45\x52\105\x44\x5f\x53\125\103\x43\x45\x53\123", "\155\x6f\x32\x66\x5f\x63\157\156\x66\151\147\165\x72\x65\x64\x5f\62\x46\101\137\155\145\164\150\x6f\x64" => $he));
$Es = $aq->get_user_detail("\155\x6f\x32\x66\x5f\x41\x75\x74\x68\171\x41\165\x74\x68\x65\x6e\x74\x69\143\x61\x74\157\x72\x5f\143\x6f\x6e\146\x69\147\x5f\x73\x74\x61\164\x75\x73", $tV);
if (!($he == "\107\x6f\157\x67\x6c\145\40\101\165\164\150\x65\x6e\164\x69\x63\x61\x74\x6f\162" || $Es)) {
goto pE6;
}
update_user_meta($tV, "\155\x6f\x32\x66\141\x5f\x73\x65\x74\137\x41\x75\164\150\171\x5f\x69\x6e\x6c\151\x6e\145", true);
pE6:
delete_site_option($N7);
AmM:
wiJ:
if (isset($_GET["\124\170\x69\x64"]) && isset($_GET["\141\x63\x63\x65\163\163\x54\157\153\x65\x6e"])) {
goto UqG;
}
if (isset($_POST["\x65\155\141\151\154\x49\x6e\x6c\x69\156\x65\x43\x6c\157\165\x64"])) {
goto t5J;
}
if (isset($_POST["\x74\x78\x69\x64"])) {
goto khq;
}
if (isset($_POST["\x6f\160\x74\x69\x6f\x6e"]) && $_POST["\x6f\160\164\151\157\156"] == "\x6d\151\156\151\x6f\x72\141\x6e\147\145\x5f\160\x61\163\x73\167\x6f\x72\144\162\x65\x73\145\x74\x5f\162\145\161\165\145\163\164") {
goto ZA0;
}
$kB = isset($_POST["\x6f\x70\164\151\x6f\x6e"]) ? sanitize_text_field($_POST["\x6f\160\164\151\157\156"]) : false;
switch ($kB) {
case "\155\151\x6e\x69\x6f\162\141\156\147\x65\x5f\155\146\141\143\164\x6f\x72\137\155\x65\164\150\157\x64":
$this->mo2f_mfa_method($_POST);
goto IIk;
case "\155\151\x6e\151\157\162\x61\x6e\x67\x65\137\x72\x62\x61\x5f\166\141\154\x69\144\x61\164\145":
$this->check_rba_validation($_POST);
goto IIk;
case "\x6d\x69\156\x69\x6f\x72\x61\x6e\147\x65\137\x72\x62\x61\x5f\143\x61\156\x63\x6c\x65":
$this->check_rba_cancalation($_POST);
goto IIk;
case "\x6d\151\x6e\151\x6f\x72\x61\x6e\x67\x65\137\x66\x6f\x72\147\x6f\x74\160\x68\x6f\156\x65":
$this->check_miniorange_challenge_forgotphone($_POST);
goto IIk;
case "\155\151\156\151\x6f\x72\x61\156\x67\145\x32\x66\137\142\141\x63\153\137\164\157\137\x69\x6e\x6c\x69\156\145\137\162\x65\147\151\163\x74\162\141\164\151\157\x6e":
$this->miniorange2f_back_to_inline_registration($_POST);
exit;
case "\x6d\x69\x6e\151\157\162\141\156\147\145\x5f\141\154\x74\145\x72\x6e\141\164\x65\x5f\154\157\x67\151\x6e\x5f\x6b\x62\141":
$this->check_miniorange_alternate_login_kba($_POST);
goto IIk;
case "\x6d\151\x6e\x69\157\x72\141\156\147\x65\x5f\x6b\142\x61\137\x76\x61\x6c\x69\144\x61\164\145":
$this->check_kba_validation($_POST);
goto IIk;
case "\x6d\151\x6e\151\x6f\x72\141\156\147\x65\x5f\x6d\157\x62\151\154\145\x5f\166\141\x6c\151\x64\141\x74\151\157\x6e":
$this->check_miniorange_mobile_validation($_POST);
goto IIk;
case "\x6d\x69\x6e\x69\157\162\141\156\x67\145\x5f\x6d\157\142\x69\154\x65\137\166\x61\154\151\144\141\x74\x69\x6f\156\137\x66\141\151\154\145\x64":
$this->check_miniorange_mobile_validation_failed($_POST);
goto IIk;
case "\155\x69\156\151\x6f\x72\141\x6e\147\x65\x5f\x73\157\146\x74\x74\157\153\145\156":
$this->check_miniorange_softtoken($_POST);
goto IIk;
case "\155\x69\x6e\x69\157\162\141\x6e\147\x65\137\163\x6f\146\x74\137\164\157\153\x65\156":
$this->check_miniorange_soft_token($_POST);
goto IIk;
case "\155\151\x6e\x69\x6f\162\x61\x6e\147\145\x5f\151\x6e\154\151\x6e\145\x5f\163\153\151\x70\x5f\162\145\x67\151\163\164\x72\x61\x74\151\157\x6e":
$this->check_miniorange_inline_skip_registration($_POST);
goto IIk;
case "\155\x69\x6e\151\157\162\x61\x6e\x67\x65\137\x61\164\164\162\x69\x62\x75\164\145\x5f\143\x6f\154\154\145\143\164\151\157\x6e":
$this->check_miniorange_attribute_collection($_POST);
goto IIk;
case "\155\151\x6e\151\x6f\162\141\156\x67\145\137\151\156\x6c\151\x6e\x65\137\163\x61\x76\145\137\62\146\141\143\164\x6f\x72\137\x6d\145\164\x68\x6f\144":
$this->save_inline_2fa_method();
goto IIk;
case "\155\x6f\x32\x66\x5f\163\x6b\151\x70\x5f\x32\146\x61\137\x73\x65\x74\x75\x70":
$this->mo2f_skip_2fa_setup();
goto IIk;
case "\x6d\151\x6e\151\x6f\162\x61\x6e\x67\145\137\142\141\143\153\x5f\151\x6e\154\151\x6e\x65":
$this->back_to_select_2fa();
goto IIk;
case "\x6d\x69\156\151\157\x72\x61\156\x67\145\137\x69\156\x6c\151\156\x65\x5f\x67\x61\x5f\x76\141\x6c\151\x64\141\164\145":
$this->inline_validate_and_set_ga();
goto IIk;
case "\155\x69\156\x69\x6f\162\x61\156\147\145\x5f\151\156\154\x69\x6e\145\x5f\163\x68\157\167\x5f\155\x6f\x62\x69\154\145\x5f\x63\x6f\x6e\146\x69\147":
$this->inline_mobile_configure();
goto IIk;
case "\155\x69\156\x69\157\162\x61\x6e\147\x65\137\151\156\x6c\151\156\x65\x5f\x63\x6f\155\x70\x6c\145\164\145\137\155\x6f\142\151\x6c\145":
$this->mo2f_inline_validate_mobile_authentication();
goto IIk;
case "\155\x6f\62\146\137\x69\156\154\151\x6e\145\137\x62\141\143\153\x75\x70\137\x6b\x62\x61\x5f\x6f\160\x74\x69\x6f\x6e":
case "\x6d\157\x32\146\137\151\x6e\154\x69\x6e\145\137\153\x62\141\137\157\160\x74\x69\x6f\x6e":
$this->mo2f_inline_validate_kba();
goto IIk;
case "\x6d\x69\x6e\151\x6f\162\141\x6e\x67\x65\x5f\x69\156\154\151\156\145\x5f\143\x6f\155\x70\154\145\164\145\137\157\164\x70\x5f\x6f\x76\x65\162\137\163\x6d\x73":
$this->mo2f_inline_send_otp();
goto IIk;
case "\155\151\156\x69\157\x72\x61\156\x67\145\137\x69\156\x6c\x69\x6e\145\137\x63\x6f\155\x70\x6c\145\x74\145\137\x6f\x74\x70":
$this->mo2f_inline_validate_otp();
goto IIk;
case "\x6d\151\x6e\151\x6f\x72\x61\x6e\147\145\x5f\x69\156\154\x69\156\145\137\x6c\x6f\147\151\x6e":
$this->mo2f_inline_login();
goto IIk;
case "\x6d\x69\156\151\157\162\141\156\147\x65\x5f\151\156\x6c\x69\x6e\145\137\162\145\x67\151\x73\164\x65\162":
$this->mo2f_inline_register();
goto IIk;
case "\155\x69\156\151\x6f\162\141\156\x67\145\x5f\151\x6e\154\x69\x6e\x65\x5f\x75\x73\145\162\x5f\x72\x65\x67\137\160\162\157\x6d\x70\x74":
$this->mo2f_inline_registeration();
goto IIk;
case "\x6d\x69\x6e\x69\x6f\x72\x61\156\147\145\137\151\x6e\x6c\151\x6e\x65\x5f\165\x73\x65\x72\137\x72\145\147\137\x6e\157\156\x63\145":
$this->mo2f_inline_validate_otp_registration();
goto IIk;
case "\155\157\x32\x66\x5f\x75\x73\145\x72\x73\x5f\142\x61\143\x6b\x75\x70\61":
$this->mo2f_download_backup_codes_inline();
goto IIk;
case "\155\x6f\x32\146\x5f\x67\x6f\x74\157\137\x77\160\137\x64\141\163\x68\x62\x6f\x61\x72\x64":
$this->mo2f_goto_wp_dashboard();
goto IIk;
case "\155\x69\156\x69\x6f\x72\141\x6e\147\x65\137\x62\x61\x63\x6b\165\160\137\x6e\x6f\x6e\x63\145":
$this->mo2f_use_backup_codes($_POST);
goto IIk;
case "\155\x69\x6e\151\157\x72\x61\156\147\x65\x5f\x76\141\154\151\x64\x61\164\x65\137\x62\141\143\153\x75\x70\137\x6e\x6f\x6e\x63\145":
$this->check_backup_codes_validation($_POST);
goto IIk;
case "\x6d\x69\x6e\x69\157\x72\x61\156\147\145\137\143\x72\x65\141\x74\x65\137\x62\x61\143\153\x75\x70\x5f\143\157\144\145\163":
$this->mo2f_create_backup_codes();
goto IIk;
case "\x6d\x69\x6e\x69\x6f\162\141\x6e\147\x65\137\x63\x68\141\154\x6c\x65\x6e\x67\145\x5f\x66\157\x72\x67\157\164\x70\150\157\156\x65":
$this->miniorange_challenge_forgotphone_nonce();
goto IIk;
case "\x6d\x6f\62\x66\x5f\162\145\x73\145\x6e\x64\x5f\157\x74\x70\137\156\x6f\x6e\x63\x65":
$this->mo2f_resend_otp_nonce();
goto IIk;
case "\155\151\156\151\157\162\141\156\147\x65\x5f\x69\156\x6c\151\156\145\137\x72\x65\163\145\156\144\x5f\157\x74\160":
$this->miniorange_inline_resend_otp();
goto IIk;
case "\x6d\x69\x6e\x69\157\x72\141\156\x67\145\137\151\x6e\154\151\156\145\x5f\147\157\x74\x6f\x5f\165\x73\145\162\x5f\x72\x65\147\151\x73\x74\x72\141\164\x69\157\156":
$this->miniorange_inline_goto_user_registration();
goto IIk;
default:
$wX = new WP_Error();
$wX->add("\x65\155\160\164\x79\137\165\x73\145\x72\x6e\x61\155\145", __("\x3c\x73\x74\x72\x6f\x6e\x67\76\105\x52\x52\117\x52\74\57\x73\x74\162\157\x6e\x67\76\72\x20\x49\x6e\166\141\x6c\151\x64\x20\x52\x65\161\165\145\x73\x74\56"));
return $wX;
goto IIk;
}
vf2:
IIk:
goto hSB;
UqG:
$tV = sanitize_text_field($_GET["\x75\163\145\x72\111\104"]);
$CJ = sanitize_text_field($_GET["\124\x78\151\x64"]);
$Je = get_site_option($tV);
$hq = get_site_option($CJ);
$Md = $tV . "\104";
$jG = get_site_option($Md);
$WC = dirname(__FILE__);
$WC = explode("\167\x70\x2d\143\157\156\164\x65\156\x74", $WC);
$WC = explode("\150\141\156\x64\x6c\145\162", $WC[1]);
$ql = __("\x59\x6f\x75\40\x61\x72\145\40\x6e\157\164\x20\x61\x75\x74\150\157\x72\151\172\145\x64\x20\x74\x6f\40\x70\x65\162\x66\157\x72\155\40\x74\150\x69\x73\x20\x61\143\x74\151\x6f\x6e", "\155\151\156\151\x6f\162\x61\x6e\147\x65\55\x32\x2d\146\141\x63\x74\x6f\x72\55\141\165\x74\150\x65\156\x74\151\143\141\x74\151\x6f\x6e");
$fg = __("\x50\154\x65\141\163\145\x20\143\157\156\164\141\143\x74\40\x74\x6f\40\171\157\165\162\x20\141\x64\155\x69\156", "\x6d\151\156\x69\157\162\141\156\x67\x65\x2d\62\55\146\x61\x63\164\157\x72\55\141\x75\x74\x68\145\156\164\x69\143\141\164\151\x6f\x6e");
$ux = "\x72\145\144";
if (!(3 == $hq)) {
goto wVd;
}
$NB = "\x74\x69\155\x65" . $CJ;
$DG = round(microtime(true) * 1000);
$Dh = get_site_option($NB);
$Da = ($DG - $Dh) / 1000;
if (!($Da <= 300)) {
goto SUH;
}
$jH = sanitize_text_field($_GET["\141\143\x63\145\163\x73\124\x6f\x6b\145\x6e"]);
if ($jH == $Je) {
goto vXF;
}
if ($jH == $jG) {
goto BoA;
}
goto Sh1;
vXF:
update_site_option($CJ, 1);
$fg = sprintf(__("\124\x72\x61\156\163\x61\143\x74\151\x6f\156\x20\x68\x61\x73\x20\142\x65\x65\x6e\40\x73\x75\143\143\x65\x73\163\x66\x75\x6c\x6c\x79\40\166\x61\x6c\151\144\141\x74\x65\144\56\45\163\120\154\145\x61\x73\145\40\x63\157\156\x74\151\x6e\x75\x65\40\x77\151\164\150\40\x74\x68\x65\40\x74\162\141\156\163\x61\143\x74\151\157\156\56", "\x6d\x69\x6e\151\157\162\x61\156\x67\x65\55\x32\55\146\141\x63\164\x6f\x72\55\141\165\164\x68\145\156\x74\x69\143\x61\164\x69\x6f\x6e"), "\x3c\142\x72\x3e\74\x62\x72\76");
$ql = __("\x54\122\101\x4e\123\101\103\x54\111\x4f\x4e\x20\123\125\x43\x43\105\x53\x53\x46\125\114", "\155\x69\156\x69\x6f\x72\141\x6e\147\x65\x2d\62\x2d\x66\141\x63\x74\157\162\55\141\165\164\150\145\156\x74\x69\x63\141\164\151\x6f\156");
$ux = "\147\162\145\145\156";
goto Sh1;
BoA:
update_site_option($CJ, 0);
$fg = sprintf(__("\124\162\141\156\163\141\143\164\x69\157\156\x20\150\141\163\40\x62\x65\145\x6e\x20\x43\141\156\x63\145\154\x65\144\x2e\45\x73\x50\154\x65\x61\163\145\40\x54\x72\x79\x20\101\147\141\x69\x6e\56", "\155\x69\x6e\151\157\162\141\156\147\x65\x2d\x32\55\x66\141\143\164\x6f\x72\x2d\x61\165\164\150\145\156\x74\x69\x63\141\x74\x69\x6f\x6e"), "\74\x62\162\x3e\74\x62\162\76");
$ql = __("\x54\x52\x41\116\123\x41\x43\x54\111\x4f\x4e\40\x44\x45\116\x49\105\x44", "\x6d\x69\x6e\151\x6f\x72\x61\x6e\147\145\x2d\62\55\146\x61\143\x74\x6f\x72\x2d\x61\x75\164\x68\x65\156\x74\151\x63\x61\164\x69\157\x6e");
Sh1:
SUH:
delete_site_option($tV);
delete_site_option($Md);
delete_site_option($NB);
wVd:
$this->display_email_verification($ql, $fg, $ux);
exit;
goto hSB;
t5J:
$T7 = sanitize_text_field($_POST["\155\151\156\151\x6f\162\x61\156\x67\145\x5f\145\155\141\x69\154\103\x68\141\156\x67\x65\x5f\x6e\157\x6e\143\145"]);
if (!wp_verify_nonce($T7, "\x6d\151\156\x69\157\162\141\156\147\x65\55\62\55\146\141\143\164\157\162\55\145\155\141\151\x6c\x2d\143\x68\141\156\147\x65\x2d\x6e\x6f\156\143\145")) {
goto ZsK;
}
$vj = sanitize_text_field($_POST["\x65\155\x61\x69\x6c\x49\x6e\154\x69\156\145\103\154\157\165\x64"]);
$mJ = sanitize_text_field($_POST["\x63\x75\x72\x72\145\156\x74\137\x75\x73\x65\162\x5f\x69\x64"]);
$dj = isset($_POST["\x73\x65\x73\163\x69\157\x6e\x5f\151\144"]) ? sanitize_text_field($_POST["\x73\145\x73\163\x69\x6f\156\137\x69\x64"]) : null;
$kO = isset($_POST["\x72\x65\x64\151\x72\x65\x63\164\x5f\x74\157"]) ? esc_url_raw($_POST["\x72\145\144\x69\x72\x65\x63\x74\x5f\164\157"]) : null;
if (!filter_var($vj, FILTER_VALIDATE_EMAIL)) {
goto DGl;
}
global $aq;
$aq->update_user_details($mJ, array("\155\x6f\62\146\x5f\165\x73\145\162\x5f\145\155\x61\x69\x6c" => $vj, "\155\x6f\x32\146\x5f\x63\157\x6e\x66\x69\147\x75\162\145\x64\x5f\x32\106\x41\x5f\x6d\145\x74\x68\157\144" => ''));
prompt_user_to_select_2factor_mthod_inline($mJ, "\x4d\x4f\137\62\x5f\x46\x41\103\x54\117\122\137\111\x4e\111\x54\111\101\x4c\111\x5a\105\137\124\127\117\x5f\x46\x41\x43\124\117\x52", '', $kO, $dj, null);
DGl:
goto IhJ;
ZsK:
$wX = new WP_Error();
$wX->add("\145\155\160\x74\x79\x5f\165\x73\145\162\x6e\141\155\x65", "\74\163\x74\162\157\156\147\x3e" . __("\x45\122\122\x4f\x52", "\x6d\x69\156\151\157\x72\141\156\147\145\55\62\55\x66\141\143\164\x6f\162\55\x61\x75\164\150\x65\x6e\164\151\143\141\x74\151\157\156") . "\x3c\57\x73\164\x72\157\156\x67\76\x3a\x20" . __("\x49\156\x76\x61\154\151\x64\x20\122\x65\161\x75\145\x73\x74\x2e"), "\x6d\151\x6e\x69\157\x72\x61\156\x67\x65\55\x32\x2d\146\x61\143\164\x6f\162\x2d\141\x75\164\150\145\156\164\x69\x63\141\164\x69\157\156");
return $wX;
IhJ:
goto hSB;
khq:
$T2 = sanitize_text_field($_POST["\x74\170\151\x64"]);
$kw = get_site_option($T2);
update_site_option("\157\x70\164\151\157\156\x56\x61\154\61", $kw);
if (!($kw == 1 || $kw == 0)) {
goto ksN;
}
delete_site_option($T2);
ksN:
echo $kw;
exit;
goto hSB;
ZA0:
global $WC;
$aY = get_userdata($_POST["\155\157\x32\146\x5f\162\145\163\145\x74\x70\141\x73\x73\137\x69\144"]);
$eO = new Customer_Setup();
$CG = json_decode($eO->validate_otp_token("\117\x54\x50\x5f\x4f\126\x45\122\x5f\x45\x4d\x41\x49\114", null, $_POST["\x6d\x6f\x32\x66\x5f\x74\x78\151\144"], $_POST["\155\157\62\x66\x61\x5f\x73\157\146\x74\164\x6f\153\145\x6e"], get_site_option("\x6d\157\62\146\137\x63\x75\163\x74\157\155\x65\x72\x4b\145\171"), get_site_option("\155\x6f\62\x66\x5f\141\x70\x69\x5f\153\145\x79"), $aY), true);
if ($CG["\163\x74\x61\164\165\x73"] == "\x53\125\103\x43\105\123\123") {
goto ccc;
}
$wX = new WP_Error();
$wX->add("\x69\x6e\166\141\154\151\x64\40\x6f\164\x70", "\74\163\164\x72\x6f\156\x67\x3e" . __("\x45\122\122\x4f\x52", "\155\x69\156\151\x6f\x72\x61\x6e\147\x65\x2d\x32\x2d\146\x61\x63\164\157\162\55\x61\x75\164\x68\x65\156\x74\151\143\141\x74\151\x6f\156") . "\x3c\57\163\x74\162\x6f\156\147\x3e\x3a\40" . __("\x49\156\166\x61\154\x69\144\x20\117\124\120\x2e", "\155\151\156\151\x6f\162\141\156\147\145\x2d\62\x2d\x66\x61\x63\x74\x6f\162\55\141\x75\164\x68\x65\156\164\x69\143\x61\164\151\157\x6e"));
return $wX;
goto RnX;
ccc:
$bR = $_POST["\x6d\157\x32\x66\x5f\x72\145\163\145\x74\160\x61\x73\x73\137\x69\144"];
global $wpdb, $UZ;
$ZR = get_userdata($bR);
do_action("\x6c\157\x73\164\x70\141\163\163\167\157\x72\144\137\160\157\163\164");
if ($ZR) {
goto p_2;
}
return false;
p_2:
$Hz = $ZR->user_login;
$GH = $ZR->user_email;
do_action("\162\x65\164\x72\145\151\x76\145\x5f\x70\x61\x73\x73\167\x6f\x72\x64", $Hz);
do_action("\x72\145\164\x72\151\x65\x76\x65\137\160\141\x73\163\x77\x6f\162\144", $Hz);
$DH = apply_filters("\141\x6c\154\157\x77\x5f\x70\141\x73\x73\x77\157\162\144\137\162\145\163\145\x74", true, $ZR->ID);
if (!$DH) {
goto XZR;
}
if (is_wp_error($DH)) {
goto Ulo;
}
goto zQR;
XZR:
return false;
goto zQR;
Ulo:
return false;
zQR:
$Yt = get_password_reset_key($ZR);
do_action("\x72\145\164\x72\151\x65\x76\x65\137\x70\x61\x73\163\x77\x6f\162\144\137\x6b\145\171", $Hz, $Yt);
if (!empty($UZ)) {
goto FXJ;
}
require_once ABSPATH . "\167\x70\55\x69\x6e\x63\x6c\x75\144\x65\x73\57\x63\x6c\x61\163\x73\55\x70\150\160\141\163\x73\56\160\x68\160";
$UZ = new PasswordHash(8, true);
FXJ:
$AG = $UZ->HashPassword($Yt);
$F3 = __("\123\x6f\155\x65\157\156\x65\x20\x72\x65\161\165\145\163\x74\145\144\x20\164\x68\141\x74\x20\x74\150\145\x20\x70\141\163\163\x77\x6f\x72\144\40\142\145\x20\162\x65\163\145\x74\40\x66\x6f\162\x20\x74\x68\145\40\146\x6f\x6c\154\157\167\151\156\x67\40\141\143\143\157\x75\x6e\164\72") . "\xd\xa\xd\12";
$F3 .= network_home_url("\57") . "\15\xa\15\xa";
$F3 .= sprintf(__("\125\163\145\x72\156\141\155\145\72\x20\45\x73"), $Hz) . "\15\xa\xd\12";
$F3 .= __("\111\146\x20\164\150\151\163\40\167\141\x73\40\141\40\x6d\x69\163\164\x61\153\x65\54\x20\152\x75\x73\x74\x20\151\x67\x6e\157\x72\x65\x20\164\x68\151\x73\x20\145\155\x61\x69\154\40\141\156\144\40\156\x6f\164\150\151\156\x67\x20\x77\x69\x6c\154\x20\150\x61\160\x70\145\156\56") . "\xd\12\xd\xa";
$F3 .= __("\124\157\x20\x72\x65\163\x65\164\x20\171\157\x75\162\x20\x70\x61\163\163\x77\157\162\x64\54\40\166\x69\163\151\164\40\x74\x68\x65\x20\146\x6f\154\154\x6f\x77\151\x6e\x67\40\x61\144\x64\x72\145\163\x73\x3a") . "\15\12\15\xa";
$F3 .= "\74" . network_site_url("\x77\160\x2d\x6c\x6f\147\151\x6e\x2e\x70\150\160\x3f\x61\143\164\x69\x6f\156\75\x72\x70\46\153\x65\171\75{$Yt}\46\x6c\157\147\x69\156\x3d" . rawurlencode($Hz), "\154\157\147\x69\156") . "\x3e\xd\12";
if (is_multisite()) {
goto uvT;
}
$VS = wp_specialchars_decode(get_site_option("\x62\x6c\x6f\147\156\x61\x6d\x65"), ENT_QUOTES);
goto Or7;
uvT:
$VS = $GLOBALS["\143\165\162\x72\x65\156\164\x5f\163\x69\x74\x65"]->site_name;
Or7:
$NZ = sprintf(__("\133\45\163\x5d\x20\x50\141\163\x73\x77\157\x72\x64\40\x52\145\x73\145\164"), $VS);
$NZ = apply_filters("\x72\145\164\x72\151\x65\166\x65\137\x70\x61\x73\x73\x77\x6f\162\x64\137\164\x69\164\x6c\145", $NZ);
$F3 = apply_filters("\162\x65\x74\x72\x69\145\x76\145\x5f\160\141\x73\163\167\157\162\x64\137\x6d\145\x73\x73\141\x67\145", $F3, $Yt);
if (!($F3 && !MoWpnsUtility::mo2f_wp_mail($GH, $NZ, $F3))) {
goto zgx;
}
wp_die(__("\124\x68\145\x20\x65\x2d\x6d\x61\151\x6c\40\143\x6f\x75\x6c\144\x20\156\x6f\x74\40\142\x65\x20\163\145\156\x74\56") . "\74\x62\x72\40\x2f\x3e\12" . __("\120\157\163\x73\151\142\154\145\40\x72\145\x61\163\x6f\156\x3a\40\x79\157\165\162\40\x68\x6f\x73\x74\40\x6d\x61\x79\x20\150\x61\166\145\40\x64\151\x73\141\x62\x6c\145\x64\40\x74\150\145\40\155\141\x69\154\x28\51\40\146\x75\x6e\143\x74\x69\x6f\x6e\56\56\x2e"));
zgx:
echo "\74\160\76\114\151\x6e\x6b\x20\146\x6f\162\x20\160\141\163\x73\167\x6f\162\144\40\162\x65\x73\145\x74\x20\150\x61\x73\x20\142\x65\145\156\x20\145\155\x61\151\154\145\144\40\164\157\x20\171\157\165\56\40\x50\154\145\141\x73\x65\x20\x63\x68\145\143\x6b\40\171\157\165\162\x20\145\x6d\x61\151\154\x2e\x3c\57\x70\x3e";
exit;
RnX:
hSB:
}
public function mo2fa_select_method($OZ, $uV, $wp, $dj, $kO, $hQ)
{
global $ce;
if ("\x4f\124\x50\x20\x4f\166\x65\x72\40\105\155\141\151\154" === $uV || "\117\124\x50\x20\x4f\126\105\122\x20\x45\115\x41\x49\x4c" === $uV || "\105\115\101\111\114" === $uV) {
goto OMK;
}
$uV = MO2f_Utility::mo2f_decode_2_factor($uV, "\x73\145\162\x76\x65\162");
goto yGK;
OMK:
$uV = "\105\x4d\x41\111\114";
if (!(MoWpnsUtility::get_mo2f_db_option("\143\x6d\126\x74\x59\127\x6c\x75\x61\127\x35\x6e\x54\x31\122\x51", "\x73\x69\x74\145\x5f\157\x70\x74\x69\x6f\x6e") <= 0)) {
goto JLr;
}
update_site_option("\142\107\154\164\141\130\x52\123\x5a\x57\x46\x6a\141\x47\x56\153", 1);
JLr:
yGK:
if (!("\117\124\120\x4f\x76\x65\162\124\145\154\x65\147\x72\141\x6d" === $uV)) {
goto H6M;
}
$uV = "\117\x54\x50\40\117\166\145\162\40\124\145\154\x65\147\x72\141\155";
H6M:
if (("\107\117\x4f\107\x4c\105\x20\x41\125\x54\x48\x45\116\x54\111\x43\x41\124\x4f\x52" === $uV || "\123\x4f\106\124\40\124\x4f\113\105\116" === $uV || "\x41\x55\124\110\x59\x20\x41\x55\x54\110\105\116\124\111\x43\x41\124\117\x52" === $uV) && MoWpnsUtility::get_mo2f_db_option("\x6d\157\62\x66\x5f\145\156\141\x62\154\145\x5f\x32\146\141\x5f\x70\x72\x6f\x6d\160\x74\x5f\157\x6e\137\154\157\147\x69\x6e\137\160\x61\x67\x65", "\163\151\164\145\137\157\x70\164\151\157\156") && !isset($_POST["\x6d\157\x5f\167\157\x6f\143\157\155\155\x65\x72\143\x65\137\154\157\147\x69\156\x5f\x70\162\x6f\155\x70\164"])) {
goto SVh;
}
if (MO2f_Utility::check_if_request_is_from_mobile_device(isset($_SERVER["\110\x54\x54\x50\137\x55\123\x45\x52\137\x41\x47\x45\x4e\x54"]) ? sanitize_text_field(wp_unslash($_SERVER["\110\124\x54\x50\x5f\125\123\x45\x52\137\101\x47\x45\116\x54"])) : '') && $hQ) {
goto E2F;
}
if ("\115\117\x42\111\114\x45\x20\101\x55\124\110\x45\116\124\x49\103\x41\x54\x49\117\116" === $uV) {
goto pER;
}
if ("\120\125\123\110\x20\x4e\x4f\124\111\106\111\x43\x41\x54\x49\117\116\123" === $uV || "\x4f\x55\x54\x20\x4f\106\40\102\101\x4e\x44\x20\x45\x4d\101\x49\114" === $uV || "\105\x6d\141\151\x6c\40\126\145\x72\151\x66\x69\143\x61\x74\151\157\x6e" === $uV) {
goto d33;
}
if ("\123\x4f\106\124\40\x54\x4f\113\105\116" === $uV || "\123\x4d\x53" === $uV || "\120\110\117\x4e\105\40\x56\105\x52\x49\x46\111\x43\x41\x54\x49\117\x4e" === $uV || "\107\117\117\x47\114\x45\40\101\125\124\x48\105\116\124\111\x43\101\x54\x4f\122" === $uV || "\105\x4d\x41\x49\x4c" === $uV || "\x4f\x54\x50\40\x4f\166\145\x72\x20\x54\x65\x6c\x65\x67\162\141\x6d" === $uV || "\x4f\124\120\x20\x4f\x76\x65\x72\x20\x57\150\141\164\x73\141\x70\x70" === $uV) {
goto riE;
}
if ("\113\102\101" === $uV || "\123\145\143\x75\162\x69\164\x79\40\121\165\x65\163\164\x69\x6f\156\163" === $uV) {
goto Q56;
}
if ("\x4e\117\x4e\x45" === $uV) {
goto f0N;
}
$this->remove_current_activity($dj);
$wX = new WP_Error();
if (MO2f_Utility::get_index_value("\107\114\117\x42\x41\114\x53", "\x6d\x6f\x32\x66\137\151\163\137\141\152\x61\x78\x5f\x72\145\x71\x75\145\163\x74")) {
goto FMx;
}
MO2f_Utility::mo2f_debug_file("\124\167\157\x20\146\141\143\164\157\x72\40\155\145\164\x68\x6f\x64\x20\150\141\163\x20\156\x6f\164\x20\x62\145\x65\x6e\40\143\157\156\x66\x69\x67\165\x72\x65\x64\x20\125\163\145\162\137\x49\x50\x2d" . $ce->get_client_ip() . "\x20\125\x73\x65\x72\x5f\111\x64\x2d" . $OZ->ID . "\x20\105\x6d\141\151\x6c\x2d" . $OZ->user_email);
$wX->add("\x65\155\x70\x74\x79\137\x75\x73\x65\x72\x6e\x61\x6d\145", __("\74\x73\164\162\157\156\x67\x3e\105\x52\x52\117\122\x3c\57\163\x74\x72\x6f\156\x67\76\x3a\40\124\167\157\40\x46\141\143\164\157\x72\x20\x6d\145\164\x68\x6f\x64\40\x68\x61\163\40\x6e\157\164\40\142\145\145\156\x20\x63\157\156\146\x69\x67\165\162\145\144\x2e"));
return $wX;
goto UBQ;
FMx:
MO2f_Utility::mo2f_debug_file("\x54\167\x6f\x20\146\x61\143\x74\x6f\x72\40\155\x65\x74\150\157\x64\x20\x68\x61\x73\40\156\157\x74\x20\142\x65\x65\x6e\40\x63\x6f\x6e\146\x69\x67\165\x72\145\x64\40\x55\163\x65\x72\137\x49\120\x2d" . $ce->get_client_ip() . "\x20\125\x73\145\x72\137\111\x64\x2d" . $OZ->ID . "\x20\x45\155\141\151\154\x2d" . $OZ->user_email);
$b1 = array("\x6e\157\x74\x69\x63\145" => "\x3c\x64\x69\x76\x20\x73\x74\x79\x6c\x65\x3d\x22\142\157\x72\144\x65\x72\x2d\x6c\x65\146\x74\72\63\x70\170\x20\x73\x6f\154\x69\144\40\43\144\143\x33\x32\x33\x32\x3b\x22\76\x26\156\x62\163\x70\73\40\x54\x77\x6f\x20\x46\141\x63\164\x6f\162\40\155\145\164\x68\x6f\144\x20\x68\141\163\40\156\x6f\x74\40\x62\145\145\x6e\x20\x63\157\x6e\146\x69\x67\x75\162\x65\x64\x2e");
wp_send_json_success($b1);
UBQ:
goto vPf;
pER:
$this->mo2f_pass2login_mobile_verification($OZ, $kO, $dj);
goto vPf;
d33:
MO2f_Utility::mo2f_debug_file("\x49\156\x69\164\151\141\x74\x69\x6e\x67\40\x32\x66\141\40\x76\x61\154\151\144\141\x74\x69\157\x6e\40\164\145\155\160\x6c\x61\164\x65\x20\x66\x6f\162\x20" . $uV . "\125\x73\145\162\x5f\111\x50\x2d" . $ce->get_client_ip() . "\40\x55\163\x65\x72\x5f\111\144\55" . $OZ->ID . "\40\105\155\141\x69\154\55" . $OZ->user_email);
$this->mo2f_pass2login_push_oobemail_verification($OZ, $uV, $kO, $dj);
goto vPf;
riE:
MO2f_Utility::mo2f_debug_file("\x49\x6e\151\x74\x69\141\x74\x69\156\147\x20\62\146\141\40\x76\x61\x6c\x69\x64\141\164\x69\157\156\x20\164\145\155\160\x6c\x61\164\145\x20\146\x6f\x72\40" . $uV . "\125\163\145\162\137\x49\120\55" . $ce->get_client_ip() . "\40\125\163\x65\162\137\x49\x64\x2d" . $OZ->ID . "\40\105\155\141\x69\154\55" . $OZ->user_email);
$this->mo2f_pass2login_otp_verification($OZ, $uV, $kO, $dj);
goto vPf;
Q56:
MO2f_Utility::mo2f_debug_file("\x49\156\151\x74\x69\x61\164\151\x6e\147\40\x32\146\141\x20\x76\x61\154\151\144\x61\164\x69\157\x6e\x20\x74\145\x6d\x70\154\x61\x74\x65\40\146\x6f\x72\40" . $uV . "\125\163\x65\x72\137\111\120\x2d" . $ce->get_client_ip() . "\40\x55\x73\x65\x72\137\x49\144\55" . $OZ->ID . "\40\105\155\141\x69\x6c\x2d" . $OZ->user_email);
$this->mo2f_pass2login_kba_verification($OZ->ID, $kO, $dj);
goto vPf;
f0N:
MO2f_Utility::mo2f_debug_file("\x6d\x6f\x32\146\x5f\163\x65\x63\x6f\156\144\137\x66\x61\x63\x74\157\x72\x20\x69\x73\40\116\117\x4e\x45\40\125\163\x65\x72\137\111\120\x2d" . $ce->get_client_ip() . "\40\125\x73\145\x72\137\111\144\x2d" . $OZ->ID . "\x20\105\x6d\141\151\x6c\x2d" . $OZ->user_email);
if (MO2f_Utility::get_index_value("\107\114\117\x42\x41\114\123", "\x6d\157\x32\x66\x5f\x69\163\137\x61\152\141\x78\137\x72\145\161\x75\145\163\x74")) {
goto wUv;
}
return $OZ;
goto ptE;
wUv:
$this->mo2fa_pass2login($kO, $dj);
ptE:
vPf:
goto slx;
E2F:
$this->mo2f_pass2login_kba_verification($OZ->ID, $kO, $dj);
slx:
goto G6M;
SVh:
$wX = $this->mo2f_validate_soft_token($OZ, $uV, $wp, $dj, $kO);
if (!is_wp_error($wX)) {
goto YM3;
}
return $wX;
YM3:
G6M:
}
function mo2f_mfa_method($HN)
{
$T7 = isset($HN["\155\x6f\x32\146\137\x6d\x69\156\151\x6f\x72\141\156\147\145\137\x32\146\x61\x63\x74\157\162\x5f\155\x65\x74\x68\157\144\137\x6e\157\156\143\145"]) ? sanitize_key($HN["\x6d\157\62\x66\137\155\151\x6e\151\157\162\x61\x6e\x67\x65\x5f\62\146\x61\143\x74\x6f\x72\x5f\x6d\x65\x74\x68\157\x64\x5f\x6e\x6f\x6e\x63\145"]) : '';
if (!wp_verify_nonce($T7, "\155\157\62\146\137\x6d\x69\156\151\x6f\162\141\x6e\147\x65\x2d\62\146\x61\143\164\157\162\55\x6d\x65\164\x68\x6f\x64\55\x6e\x6f\156\143\145")) {
goto mHX;
}
$d0 = isset($HN["\163\145\163\x73\151\x6f\x6e\137\151\x64"]) ? sanitize_text_field(wp_unslash($HN["\x73\x65\163\163\151\157\x6e\x5f\151\144"])) : null;
$OE = MO2f_Utility::mo2f_get_transient($d0, "\155\x6f\x32\x66\137\143\165\162\x72\145\x6e\x74\137\x75\163\145\x72\137\x69\144");
$OZ = get_user_by("\151\x64", $OE);
$w6 = isset($HN["\x6d\157\x32\146\137\x73\145\154\x65\143\164\x65\x64\137\155\146\x61\x63\164\x6f\x72\137\x6d\145\x74\150\157\144"]) ? sanitize_text_field(wp_unslash($HN["\155\x6f\62\146\137\x73\x65\154\x65\143\164\145\144\137\155\x66\141\x63\x74\157\x72\x5f\155\x65\x74\x68\157\x64"])) : '';
$kO = esc_url_raw(wp_unslash($HN["\x72\145\x64\x69\x72\145\x63\164\x5f\x74\x6f"]));
$this->mo2fa_select_method($OZ, $w6, null, $d0, $kO, null);
goto LID;
mHX:
$wX = new WP_Error();
$wX->add("\x65\155\x70\x74\x79\137\165\163\x65\162\156\x61\155\145", "\74\x73\164\x72\x6f\x6e\x67\76" . __("\105\x52\x52\x4f\122", "\x6d\151\x6e\151\157\x72\141\x6e\147\145\55\x32\x2d\146\141\143\164\157\x72\55\x61\165\164\x68\x65\x6e\164\x69\x63\x61\164\x69\157\156") . "\74\x2f\163\164\162\157\x6e\x67\76\x3a\40" . __("\x49\156\x76\x61\x6c\x69\x64\x20\122\x65\161\165\x65\163\164\56", "\155\151\x6e\151\157\162\141\x6e\147\x65\x2d\x32\55\x66\x61\x63\164\x6f\162\x2d\141\x75\164\x68\x65\x6e\x74\151\143\141\x74\x69\x6f\x6e"));
return $wX;
LID:
}
function miniorange_inline_goto_user_registration()
{
global $aq;
if (!isset($_POST["\155\151\156\x69\x6f\x72\x61\x6e\147\145\x5f\x69\156\154\x69\156\145\137\x67\x6f\164\x6f\137\165\x73\x65\x72\x5f\x72\145\x67\151\x73\x74\x72\x61\x74\151\157\x6e\x5f\156\157\x6e\x63\x65"])) {
goto Wab;
}
$T7 = $_POST["\x6d\x69\x6e\x69\157\x72\141\x6e\x67\145\x5f\x69\x6e\x6c\x69\x6e\x65\x5f\147\x6f\x74\x6f\137\165\163\145\162\x5f\x72\145\x67\x69\x73\164\x72\141\164\x69\157\156\137\156\157\156\x63\145"];
if (!wp_verify_nonce($T7, "\155\x69\156\151\157\x72\x61\156\147\x65\x2d\62\55\x66\x61\143\x74\157\162\55\151\156\x6c\151\x6e\145\55\147\157\164\x6f\x2d\165\x73\145\x72\x2d\162\x65\x67\x69\163\x74\162\x61\164\151\157\156\x2d\x6e\x6f\x6e\143\145")) {
goto FAx;
}
$this->miniorange_pass2login_start_session();
$kO = isset($_POST["\162\x65\x64\151\x72\x65\143\x74\x5f\x74\x6f"]) ? $_POST["\x72\145\x64\151\162\x65\x63\x74\137\164\157"] : null;
$dj = isset($_POST["\x73\x65\163\163\x69\157\x6e\x5f\151\144"]) ? $_POST["\163\x65\163\x73\x69\157\156\x5f\x69\144"] : null;
$current_user = MO2f_Utility::getUserFromSessionId($dj);
delete_user_meta($current_user->ID, "\x6d\157\x5f\x32\146\141\137\166\x65\x72\151\146\x79\x5f\x6f\x74\x70\x5f\x63\x72\145\141\164\145\137\x61\x63\143\x6f\x75\x6e\164");
$aq->update_user_details($current_user->ID, array("\155\157\x5f\62\x66\141\x63\164\x6f\x72\x5f\x75\x73\145\162\137\162\145\x67\x69\163\x74\x72\141\x74\151\x6f\x6e\137\x73\x74\x61\164\165\x73" => '', "\x6d\x6f\62\146\137\165\x73\x65\x72\137\145\155\x61\151\154" => ''));
$oR = '';
$o4 = "\x4d\x4f\137\62\137\x46\101\x43\124\x4f\122\x5f\x50\122\117\115\x50\124\137\106\x4f\122\137\125\x53\105\122\137\122\x45\107\x49\123\124\122\x41\124\x49\x4f\116";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj, null);
goto gtz;
FAx:
$wX = new WP_Error();
$wX->add("\145\155\x70\164\171\137\165\x73\x65\162\x6e\141\x6d\145", "\x3c\163\164\x72\157\x6e\x67\76" . __("\105\122\x52\117\122", "\x6d\151\x6e\x69\x6f\162\x61\x6e\x67\145\55\62\55\146\141\143\x74\x6f\x72\55\x61\165\164\x68\x65\x6e\x74\x69\143\x61\164\151\x6f\156") . "\74\57\163\x74\162\157\156\x67\x3e\72\40" . __("\x49\156\x76\141\x6c\151\x64\40\122\x65\x71\165\x65\x73\x74\56", "\155\x69\156\x69\157\162\x61\156\x67\x65\x2d\x32\x2d\146\141\x63\x74\x6f\x72\x2d\x61\165\164\150\x65\x6e\164\x69\x63\x61\164\x69\157\x6e"));
return $wX;
gtz:
Wab:
}
function miniorange_inline_resend_otp()
{
global $aq;
$T7 = $_POST["\x6d\151\x6e\x69\157\x72\x61\156\147\145\137\x69\156\x6c\151\156\145\x5f\162\x65\x73\x65\156\144\x5f\157\164\x70\x5f\x6e\157\156\x63\x65"];
if (!wp_verify_nonce($T7, "\155\x69\156\151\x6f\162\x61\156\147\145\x2d\x32\55\146\141\x63\x74\x6f\162\x2d\x69\x6e\x6c\x69\156\145\x2d\x72\145\x73\145\x6e\x64\x2d\x6f\x74\160\x2d\156\x6f\156\x63\145")) {
goto VVs;
}
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["\x73\145\x73\163\151\157\156\137\x69\x64"]) ? $_POST["\x73\x65\163\163\x69\157\156\x5f\151\144"] : null;
$kO = isset($_POST["\162\x65\144\151\x72\145\143\x74\137\x74\157"]) ? $_POST["\162\x65\x64\x69\162\145\x63\164\137\164\157"] : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\x32\x66\137\143\x75\162\162\x65\x6e\164\x5f\x75\163\x65\162\137\151\144");
$current_user = get_user_by("\x69\144", $bR);
$Jj = $aq->get_user_detail("\x6d\x6f\x32\146\x5f\x63\157\x6e\146\x69\x67\x75\162\x65\144\137\x32\106\x41\137\155\x65\164\150\157\x64", $current_user->ID);
$Cr = $current_user->ID;
$oR = '';
$o4 = '';
$z5 = '';
if ($Jj == "\x53\x4d\x53") {
goto yZS;
}
if ($Jj == "\x53\115\x53\x20\101\116\104\40\x45\115\101\111\x4c") {
goto zGz;
}
if ($Jj == "\x4f\124\120\x20\117\126\x45\122\40\x45\115\x41\111\x4c") {
goto p0j;
}
if ($Jj == "\120\x48\117\116\x45\x20\x56\x45\x52\111\x46\x49\x43\x41\124\111\117\116") {
goto HUH;
}
$Re = "\x45\x4d\101\111\114";
$z5 = $aq->get_user_detail("\x6d\157\x32\x66\137\165\163\145\162\137\145\155\x61\151\x6c", $Cr);
$oR = __("\101\156\40\x4f\124\120\40\x68\141\x73\x20\x62\145\x65\x6e\x20\x73\x65\x6e\164\x20\164\x6f\40", "\155\x69\x6e\151\157\162\x61\x6e\147\145\55\x32\55\x66\x61\143\164\x6f\162\x2d\141\x75\164\x68\145\x6e\164\151\143\x61\x74\x69\157\x6e") . "\40\74\142\76\40" . $z5 . "\74\x2f\x62\x3e\56" . __("\x50\x6c\x65\141\x73\145\40\x65\x6e\164\145\162\x20\164\x68\x65\x20\x4f\x54\120\x20\x62\x65\154\x6f\167\40\164\x6f\x20\166\x65\x72\x69\x66\171\x20\x79\x6f\165\x72\40\x65\155\141\x69\154\x2e\40\x49\146\x20\171\x6f\x75\40\x64\151\144\40\156\x6f\x74\x20\x67\145\164\x20\164\x68\145\x20\x65\x6d\x61\151\x6c\54\40\x70\154\145\x61\x73\x65\x20\143\150\x65\143\153\x20\171\x6f\x75\162", "\x6d\151\156\151\x6f\x72\141\x6e\x67\145\55\62\x2d\x66\141\x63\164\x6f\x72\55\x61\165\x74\x68\145\x6e\x74\x69\143\x61\164\151\157\x6e") . "\x20\74\142\x3e\40" . __("\x53\x50\101\x4d", "\x6d\151\x6e\151\x6f\162\141\x6e\147\x65\55\62\x2d\146\x61\143\x74\x6f\x72\55\x61\x75\164\150\145\156\x74\151\x63\141\x74\x69\x6f\x6e") . "\x20\x3c\x2f\x62\x3e\40" . __("\x66\x6f\x6c\144\145\162\56", "\x6d\151\156\x69\157\x72\141\x6e\x67\x65\55\x32\x2d\x66\x61\143\x74\x6f\162\55\x61\165\164\x68\x65\156\164\151\143\x61\x74\x69\157\x6e");
goto Kjp;
yZS:
$Re = "\123\115\123";
$z5 = $aq->get_user_detail("\155\x6f\62\146\137\165\163\x65\162\137\160\x68\x6f\x6e\x65", $Cr);
$F3 = isset($z5) ? __("\x54\x68\x65\40\x4f\156\145\40\124\x69\155\x65\40\x50\141\x73\x73\143\157\x64\145\40\150\141\x73\40\142\145\145\156\x20\163\145\x6e\x74\40\164\x6f\x20", "\155\151\156\151\157\162\x61\x6e\x67\x65\x2d\x32\x2d\x66\141\143\x74\x6f\162\x2d\141\165\164\150\x65\x6e\164\151\143\141\164\151\x6f\x6e") . $z5 . __("\56\40\120\x6c\x65\141\163\145\x20\x65\x6e\x74\x65\x72\x20\164\x68\x65\x20\157\x6e\145\40\164\x69\x6d\x65\x20\160\141\163\x73\x63\x6f\x64\x65\x20\x62\x65\154\157\x77\x20\x74\157\40\166\145\x72\151\146\171\x20\x79\x6f\165\162\40\x6e\x75\x6d\x62\145\162\56", "\x6d\x69\x6e\151\157\x72\141\x6e\147\145\x2d\62\55\x66\x61\143\x74\157\x72\55\141\165\x74\x68\145\156\164\x69\143\x61\164\x69\157\156") : __("\x50\x6c\145\x61\x73\x65\40\x63\154\151\143\x6b\x20\157\x6e\x20\126\x65\x72\151\x66\171\40\142\165\164\x74\x6f\156\x20\164\157\x20\162\145\143\145\151\x76\x65\x20\117\x54\120\40\157\166\145\x72\40\x79\157\165\x72\x20\x70\x68\x6f\156\x65\x20\x6e\165\155\x62\x65\x72\x2e", "\155\151\156\x69\x6f\162\x61\x6e\147\145\x2d\x32\55\146\141\x63\164\157\x72\x2d\x61\165\x74\150\145\156\164\151\143\x61\164\x69\157\156");
$oR = $F3;
goto Kjp;
zGz:
$Re = "\117\x54\120\x5f\117\126\x45\x52\x5f\x53\115\x53\x5f\101\116\x44\x5f\x45\x4d\x41\x49\114";
$z5 = array();
$ca = $aq->get_user_detail("\x6d\x6f\x32\x66\x5f\165\163\x65\162\x5f\x70\x68\x6f\x6e\145", $Cr);
$z5["\160\x68\x6f\156\x65"] = isset($ca) ? $ca : null;
$z5["\145\155\x61\x69\154"] = $aq->get_user_detail("\x6d\x6f\62\146\x5f\x75\x73\x65\x72\x5f\145\155\141\x69\154", $Cr);
$F3 = isset($ca) ? __("\x54\150\x65\40\117\x6e\145\40\x54\151\x6d\x65\40\x50\141\163\163\x63\157\144\145\x20\x68\141\163\x20\142\145\145\x6e\x20\x73\145\156\x74\x20\x74\157\40", "\x6d\151\x6e\151\157\162\x61\156\147\145\x2d\x32\x2d\146\141\143\x74\157\x72\x2d\141\165\164\150\x65\156\164\151\x63\x61\164\151\157\x6e") . $z5["\160\150\x6f\x6e\145"] . __("\40\x61\156\144\x20", "\155\151\156\151\157\x72\x61\156\147\x65\55\x32\55\x66\141\x63\164\x6f\162\x2d\141\165\x74\x68\145\156\164\x69\x63\141\x74\151\157\156") . $z5["\x65\x6d\141\151\x6c"] . __("\120\154\x65\x61\163\x65\x20\x65\x6e\x74\145\x72\x20\x74\x68\x65\x20\157\156\145\x20\164\x69\x6d\145\x20\160\x61\163\163\x63\x6f\144\x65\40\142\x65\154\157\x77\40\164\157\40\166\145\162\x69\146\x79\40\x79\x6f\165\x72\x20\x6e\x75\155\142\x65\x72\x20\x61\x6e\144\40\x65\155\x61\151\154\x2e", "\x6d\x69\156\x69\157\162\141\156\147\x65\55\62\55\146\141\x63\x74\157\x72\x2d\141\x75\164\150\x65\156\164\151\143\141\x74\x69\157\156") : __("\x50\154\x65\x61\x73\x65\x20\143\x6c\x69\143\x6b\40\x6f\x6e\x20\x56\x65\162\151\146\x79\x20\142\x75\164\x74\x6f\156\40\164\x6f\40\162\145\143\145\x69\x76\x65\40\x4f\x54\x50\x20\x6f\166\145\162\40\171\157\165\x72\40\x70\x68\157\x6e\x65\40\156\165\155\x62\145\x72\x20\x61\156\144\x20\x79\157\x75\162\x20\x65\155\x61\151\x6c\56", "\x6d\x69\x6e\151\x6f\x72\141\x6e\x67\145\x2d\62\55\x66\141\143\164\157\162\55\x61\165\164\x68\x65\x6e\x74\151\143\x61\x74\x69\157\x6e");
$oR = $F3;
goto Kjp;
p0j:
$Re = "\x4f\124\x50\x5f\x4f\126\x45\x52\x5f\x45\115\x41\x49\114";
$z5["\145\155\x61\151\154"] = $aq->get_user_detail("\155\x6f\x32\x66\x5f\x75\x73\145\x72\137\x65\155\141\x69\x6c", $Cr);
$F3 = "\x54\150\x65\x20\x4f\156\145\40\124\151\155\x65\x20\x50\141\x73\x73\x63\157\144\145\40\150\x61\x73\x20\142\x65\x65\x6e\40\163\145\x6e\x74\40\x74\x6f\x20" . $z5 . "\x20\120\154\145\141\x73\145\40\145\x6e\164\x65\x72\x20\x74\x68\x65\40\x6f\x6e\x65\x20\164\151\155\x65\x20\x70\141\163\x73\x63\x6f\x64\145\x20\x62\145\154\x6f\x77\40\x74\157\x20\166\x65\162\x69\x66\x79\x20\171\x6f\x75\x72\x20\x65\155\x61\x69\154\x2e";
$oR = $F3;
goto Kjp;
HUH:
$Re = "\x50\110\x4f\x4e\x45\137\126\x45\x52\111\106\x49\x43\101\x54\111\x4f\x4e";
$ca = $aq->get_user_detail("\155\157\x32\x66\x5f\x75\x73\x65\162\x5f\x70\x68\x6f\x6e\145", $Cr);
$z5 = isset($ca) ? $ca : null;
$F3 = isset($ca) ? __("\x59\157\x75\x20\x77\151\154\x6c\40\162\x65\x63\145\151\166\x65\x20\x61\40\x70\150\x6f\x6e\x65\x20\143\141\154\x6c\40\x6f\x6e\x20\164\150\151\x73\x20\156\165\155\142\x65\162\x20", "\x6d\x69\156\x69\157\162\x61\x6e\147\145\x2d\x32\x2d\x66\x61\x63\164\x6f\162\55\x61\165\164\150\x65\x6e\164\x69\143\141\164\x69\x6f\x6e") . $z5 . "\56" . __("\120\x6c\x65\141\x73\145\40\x65\x6e\x74\x65\162\40\164\150\145\x20\157\x6e\x65\x20\x74\151\155\x65\x20\160\141\163\163\143\x6f\144\145\x20\x62\x65\x6c\157\167\x20\x74\157\x20\166\x65\x72\x69\146\171\x20\171\157\x75\x72\x20\156\165\155\x62\x65\x72\x2e", "\155\151\156\151\157\x72\141\156\147\x65\x2d\x32\55\146\141\143\x74\x6f\162\x2d\141\165\x74\150\145\x6e\164\151\x63\141\164\x69\x6f\156") : __("\x50\x6c\145\141\163\x65\40\x63\x6c\151\x63\153\40\157\156\x20\126\x65\162\x69\x66\171\40\142\x75\x74\x74\157\156\x20\164\x6f\x20\x72\145\143\x65\151\x76\x65\x20\x74\x68\145\40\160\150\157\156\145\x20\x63\x61\154\154\x2e", "\x6d\x69\x6e\x69\157\x72\141\156\x67\145\x2d\x32\x2d\146\141\x63\164\157\x72\x2d\141\x75\x74\150\x65\156\164\151\x63\141\x74\x69\157\156");
$oR = $F3;
Kjp:
$eO = new Customer_Setup();
$CG = json_decode($eO->send_otp_token($z5, $Re, get_site_option("\x6d\157\62\146\137\x63\x75\163\x74\157\x6d\x65\x72\113\x65\x79"), get_site_option("\155\x6f\62\146\137\x61\160\151\137\x6b\x65\x79"), $current_user), true);
if (strcasecmp($CG["\163\164\x61\x74\165\163"], "\x53\x55\103\x43\105\x53\x53") == 0) {
goto nwr;
}
$oR = __("\124\150\x65\162\x65\x20\x77\x61\x73\x20\x61\x6e\40\145\162\x72\157\162\x20\151\156\x20\x73\x65\156\144\151\156\x67\40\157\x6e\x65\x20\164\151\x6d\145\40\x70\141\163\x73\143\x6f\144\145\56\x20\x50\154\145\x61\x73\145\40\143\154\151\143\x6b\x20\157\x6e\x20\122\x65\163\145\156\x64\x20\117\124\x50\40\164\x6f\40\x74\162\x79\40\x61\x67\141\x69\156\x2e", "\155\x69\x6e\151\157\x72\141\x6e\x67\x65\x2d\62\x2d\146\141\143\164\x6f\x72\55\x61\x75\x74\150\x65\156\x74\x69\x63\141\x74\151\x6f\x6e");
if ($Re == "\x45\x4d\x41\x49\114") {
goto x2S;
}
$o4 = "\115\x4f\x5f\62\137\x46\x41\x43\x54\117\122\x5f\120\x52\x4f\115\120\x54\x5f\125\x53\x45\x52\137\106\x4f\x52\x5f\62\x46\101\x5f\115\x45\x54\110\117\104\123";
goto pSR;
x2S:
$aq->update_user_details($Cr, array("\155\x6f\x5f\x32\x66\141\143\x74\157\x72\137\165\x73\145\162\x5f\x72\145\147\151\163\x74\x72\141\x74\x69\157\x6e\137\163\164\x61\x74\165\x73" => "\115\x4f\x5f\62\x5f\x46\101\x43\124\x4f\122\x5f\117\x54\x50\x5f\x44\x45\114\x49\126\x45\x52\x45\x44\137\106\x41\x49\114\125\x52\x45"));
$o4 = "\115\117\x5f\x32\x5f\x46\101\x43\124\117\x52\x5f\120\x52\x4f\115\120\124\137\106\117\122\137\125\123\x45\x52\x5f\122\x45\107\x5f\x4f\124\x50";
pSR:
goto Zu6;
nwr:
update_user_meta($Cr, "\x6d\x6f\x5f\x32\146\141\x5f\x76\145\x72\x69\146\x79\137\157\164\x70\137\143\x72\145\141\x74\x65\137\141\x63\143\157\165\x6e\164", $CG["\x74\x78\x49\144"]);
if ($Re == "\105\x4d\x41\x49\114") {
goto gP4;
}
$o4 = "\115\117\137\62\137\106\x41\x43\124\x4f\x52\x5f\x50\x52\117\x4d\x50\x54\137\125\x53\x45\x52\137\106\117\122\137\62\x46\101\137\x4d\105\124\x48\x4f\104\x53";
goto ioV;
gP4:
$aq->update_user_details($Cr, array("\155\157\137\x32\x66\141\x63\x74\x6f\x72\x5f\165\x73\x65\162\x5f\x72\x65\x67\151\163\164\162\141\x74\151\x6f\156\137\x73\164\141\x74\x75\x73" => "\x4d\117\137\x32\x5f\x46\101\x43\x54\117\x52\137\x4f\x54\120\x5f\104\105\x4c\111\x56\105\122\x45\104\x5f\x53\125\103\x43\105\x53\123"));
$o4 = "\x4d\117\x5f\x32\137\106\x41\103\124\x4f\122\137\x50\122\117\x4d\x50\124\x5f\106\x4f\122\x5f\125\x53\105\122\137\x52\x45\x47\x5f\x4f\124\x50";
ioV:
Zu6:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj, null);
goto xgb;
VVs:
$wX = new WP_Error();
$wX->add("\145\x6d\x70\164\x79\137\x75\x73\145\x72\x6e\141\155\145", "\74\x73\x74\162\157\156\x67\76" . __("\x45\x52\x52\x4f\122", "\x6d\151\156\151\157\x72\141\156\147\145\55\x32\x2d\146\141\x63\x74\x6f\162\x2d\141\165\x74\150\145\x6e\x74\x69\143\141\164\x69\157\x6e") . "\74\57\163\164\162\x6f\x6e\x67\x3e\x3a\40" . __("\x49\156\x76\x61\154\151\144\40\x52\x65\x71\165\x65\x73\164\56", "\155\x69\156\151\157\x72\141\156\x67\145\x2d\62\x2d\x66\141\143\x74\157\162\x2d\x61\x75\164\150\145\x6e\164\x69\143\141\x74\x69\x6f\x6e"));
return $wX;
xgb:
}
function mo2f_resend_otp_nonce()
{
global $aq;
$T7 = $_POST["\x6d\157\62\146\137\x72\x65\x73\x65\x6e\144\x5f\x6f\x74\x70\x5f\156\157\x6e\x63\x65"];
if (!wp_verify_nonce($T7, "\x6d\157\62\x66\x5f\x72\x65\163\x65\156\144\137\157\164\160\x5f\x6e\x6f\x6e\x63\145")) {
goto Nv8;
}
$this->miniorange_pass2login_start_session();
$dj = isset($_POST["\163\x65\163\x73\x69\157\156\x5f\x69\x64"]) ? $_POST["\x73\x65\x73\163\151\157\x6e\137\x69\144"] : null;
$bR = MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\62\146\137\x63\165\162\x72\145\156\x74\x5f\x75\163\x65\x72\x5f\151\x64");
$OZ = get_user_by("\151\144", $bR);
$kO = isset($_POST["\x72\x65\144\x69\162\x65\143\164\137\x74\157"]) ? $_POST["\162\x65\x64\151\x72\145\143\164\x5f\164\157"] : null;
$this->mo2f_pass2login_otp_verification($OZ, "\x4f\x54\120\40\117\166\145\x72\x20\x53\115\x53", $kO, $dj);
goto RCB;
Nv8:
$wX = new WP_Error();
$wX->add("\145\155\160\x74\x79\137\165\163\x65\162\x6e\141\x6d\x65", "\74\163\164\162\x6f\156\x67\x3e" . __("\x45\x52\x52\x4f\122", "\x6d\x69\156\x69\x6f\x72\141\156\x67\145\55\x32\x2d\146\141\143\164\157\x72\55\141\x75\164\150\145\x6e\x74\151\143\x61\x74\x69\x6f\156") . "\74\x2f\163\164\162\x6f\156\x67\76\72\x20" . __("\111\x6e\x76\141\x6c\151\144\40\122\145\161\x75\x65\x73\x74\x2e", "\x6d\x69\156\x69\157\x72\141\x6e\x67\x65\x2d\62\55\x66\x61\143\164\x6f\x72\x2d\x61\x75\x74\150\145\x6e\164\151\x63\x61\164\151\x6f\x6e"));
return $wX;
RCB:
}
function deniedMessage($F3)
{
if (empty($F3) && get_site_option("\x64\145\x6e\x69\145\144\x4d\x65\x73\163\141\x67\145")) {
goto nB5;
}
return $F3;
goto BDE;
nB5:
delete_site_option("\144\x65\x6e\x69\145\144\x4d\x65\163\x73\x61\x67\x65");
BDE:
}
function remove_current_activity($d0)
{
global $aq;
$Bo = array("\x6d\x6f\x32\x66\137\143\165\x72\x72\x65\x6e\x74\137\165\163\145\162\x5f\151\144", "\x6d\157\x32\146\x5f\x31\x73\x74\x66\x61\x63\164\x6f\162\x5f\x73\x74\x61\164\165\163", "\155\157\137\x32\146\x61\143\x74\x6f\x72\137\154\x6f\x67\x69\156\137\163\164\x61\x74\x75\x73", "\x6d\x6f\62\146\x2d\154\157\x67\x69\156\x2d\161\x72\103\x6f\144\x65", "\155\x6f\62\146\137\164\162\141\x6e\163\x61\143\164\151\x6f\x6e\x49\144", "\155\157\62\146\137\154\157\x67\x69\156\137\155\145\163\x73\x61\x67\x65", "\x6d\157\62\x66\137\x72\142\x61\137\x73\164\141\164\x75\x73", "\155\x6f\x5f\62\x5f\x66\x61\x63\x74\x6f\x72\x5f\x6b\x62\x61\137\161\x75\x65\163\x74\151\x6f\156\x73", "\x6d\x6f\x32\x66\137\x73\150\x6f\x77\137\161\162\137\x63\x6f\144\x65", "\x6d\x6f\62\146\137\x67\157\x6f\x67\154\145\x5f\x61\x75\x74\150", "\155\x6f\62\x66\x5f\x61\165\x74\150\171\137\x6b\x65\171\163");
$zz = array("\x6d\x6f\x32\146\x5f\143\x75\162\x72\145\x6e\x74\137\x75\163\145\162\137\151\144", "\155\x6f\62\x66\x5f\x31\x73\164\x66\141\143\164\157\x72\x5f\x73\164\x61\164\165\x73", "\155\x6f\x5f\x32\x66\141\x63\x74\x6f\x72\x5f\154\x6f\x67\x69\x6e\137\x73\x74\141\x74\165\163", "\155\157\62\146\x2d\154\x6f\x67\x69\156\x2d\x71\x72\x43\x6f\x64\145", "\155\x6f\x32\146\x5f\164\162\141\x6e\163\x61\143\164\x69\157\x6e\x49\144", "\155\x6f\x32\146\x5f\x6c\x6f\x67\151\x6e\137\155\145\163\163\141\147\145", "\x6d\157\x32\146\137\x72\142\141\137\x73\x74\x61\164\x75\163\x5f\163\x74\141\164\x75\163", "\155\x6f\62\146\137\x72\142\x61\x5f\x73\x74\x61\x74\165\163\137\x73\x65\x73\163\x69\x6f\156\x55\165\x69\x64", "\155\x6f\62\x66\137\x72\x62\141\137\x73\164\x61\x74\x75\163\137\144\145\143\151\x73\151\x6f\156\137\146\x6c\141\147", "\153\142\141\137\x71\x75\145\x73\x74\x69\157\x6e\x31", "\x6b\142\x61\x5f\x71\x75\x65\163\x74\151\x6f\156\62", "\155\157\x32\146\137\163\150\x6f\x77\137\161\162\137\143\x6f\x64\145", "\155\x6f\x32\x66\137\x67\157\x6f\147\154\x65\137\141\165\x74\150", "\155\157\62\146\x5f\x61\x75\x74\150\x79\x5f\x6b\x65\x79\x73");
$zf = array("\x73\145\x73\x73\151\x6f\x6e\x5f\x69\144", "\x6d\x6f\62\146\137\143\x75\x72\x72\x65\x6e\x74\137\x75\163\145\x72\x5f\151\x64", "\x6d\x6f\x32\x66\x5f\154\157\147\151\x6e\137\155\145\x73\x73\x61\147\145", "\155\x6f\x32\146\x5f\x31\163\164\146\x61\143\x74\157\x72\x5f\x73\x74\141\164\x75\x73", "\155\x6f\62\x66\137\x74\x72\141\x6e\163\141\143\x74\151\x6f\156\111\144", "\x6d\157\137\62\137\x66\141\143\164\157\x72\137\x6b\142\x61\137\161\165\145\163\x74\x69\x6f\x6e\x73", "\155\x6f\62\x66\x5f\x72\142\141\137\x73\x74\141\x74\x75\163", "\164\x73\137\143\162\145\x61\x74\145\144");
MO2f_Utility::unset_session_variables($Bo);
MO2f_Utility::unset_cookie_variables($zz);
$Yt = MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\62\146\x5f\145\x6e\143\x72\x79\160\x74\x69\157\156\137\153\145\x79");
$d0 = MO2f_Utility::decrypt_data($d0, $Yt);
$aq->save_user_login_details($d0, array("\x6d\157\x32\x66\x5f\143\165\162\162\x65\x6e\x74\137\165\163\145\x72\137\151\144" => '', "\155\x6f\62\146\x5f\x6c\x6f\x67\151\x6e\x5f\155\145\163\163\x61\147\x65" => '', "\x6d\157\x32\x66\137\x31\x73\x74\146\x61\x63\x74\157\x72\137\x73\x74\x61\x74\x75\x73" => '', "\155\157\x32\146\x5f\x74\162\141\x6e\163\x61\143\x74\x69\157\156\x49\x64" => '', "\x6d\157\x5f\x32\137\146\141\x63\164\x6f\162\x5f\153\142\141\137\x71\165\145\x73\x74\x69\x6f\156\x73" => '', "\155\x6f\x32\x66\x5f\162\x62\x61\137\x73\x74\x61\164\165\163" => '', "\x74\163\137\143\162\145\x61\x74\x65\x64" => ''));
}
public function miniorange_pass2login_start_session()
{
if (!(!session_id() || session_id() == '' || !isset($_SESSION))) {
goto D2C;
}
$SQ = ini_get("\x73\145\x73\x73\151\157\x6e\x2e\x73\x61\166\145\137\x70\141\x74\150");
if (!(is_writable($SQ) && is_readable($SQ))) {
goto UBu;
}
if (!(session_status() != PHP_SESSION_DISABLED)) {
goto eKU;
}
session_start();
eKU:
UBu:
D2C:
}
function mo2f_pass2login_kba_verification($bR, $kO, $d0)
{
global $aq, $lO;
$lO = $bR;
$GH = $aq->get_user_detail("\155\157\62\x66\x5f\165\x73\145\x72\137\145\155\141\151\x6c", $bR);
if (!is_null($d0)) {
goto X4O;
}
$d0 = $this->create_session();
X4O:
if (MO2F_IS_ONPREM) {
goto CRF;
}
$Sa = new Customer_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\62\x66\137\143\165\x73\x74\x6f\155\x65\x72\113\145\171");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\62\x66\x5f\141\x70\x69\x5f\153\145\171");
$CG = $Sa->send_otp_token($GH, "\x4b\102\x41", $Tp, $Lv);
$C7 = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto G7b;
}
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("\x65\x6d\x70\164\171\x5f\x75\163\x65\162\x6e\141\x6d\145", __("\74\x73\164\x72\x6f\156\147\x3e\x45\122\122\x4f\122\74\x2f\x73\164\x72\x6f\156\147\76\x3a\x20\x41\x6e\x20\x65\162\162\157\162\x20\157\143\143\x75\x72\145\144\40\167\x68\151\154\x65\x20\x70\x72\x6f\143\145\163\x73\x69\x6e\147\40\171\x6f\165\x72\x20\162\x65\x71\165\145\x73\164\x2e\x20\120\154\145\141\163\145\40\124\162\171\40\x61\x67\x61\151\x6e\x2e"));
return $wX;
goto G08;
G7b:
if ($C7["\x73\x74\141\164\165\163"] == "\123\x55\x43\x43\x45\x53\x53") {
goto tVu;
}
if ($C7["\x73\x74\141\164\165\163"] == "\x45\x52\x52\x4f\122") {
goto pM3;
}
goto Afi;
tVu:
MO2f_Utility::set_user_values($d0, "\155\x6f\62\146\137\x74\x72\141\156\x73\141\143\x74\x69\157\x6e\111\144", $C7["\x74\170\111\x64"]);
$this->mo2f_transactionid = $C7["\164\x78\111\x64"];
$lY = array();
$lY[0] = $C7["\x71\x75\145\163\164\x69\157\x6e\x73"][0];
$lY[1] = $C7["\161\165\x65\x73\164\x69\x6f\x6e\x73"][1];
MO2f_Utility::mo2f_set_transient($d0, "\155\157\x5f\x32\137\x66\141\x63\164\x6f\x72\137\153\142\141\x5f\161\165\x65\x73\164\x69\x6f\156\163", $lY);
$this->mo2f_kbaquestions = $lY;
$oR = __("\120\x6c\x65\141\163\x65\40\141\156\163\x77\145\162\40\x74\150\145\40\x66\157\154\154\x6f\167\x69\x6e\x67\40\161\165\x65\x73\x74\151\157\156\163\72", "\155\151\x6e\x69\x6f\162\x61\x6e\x67\145\x2d\62\55\x66\141\143\x74\157\x72\x2d\141\x75\164\x68\x65\x6e\164\x69\143\x61\x74\x69\x6f\156");
$o4 = "\115\x4f\137\x32\137\106\101\103\x54\117\122\137\x43\110\x41\x4c\114\105\x4e\107\105\137\113\102\x41\137\101\125\124\110\x45\116\x54\x49\103\x41\x54\x49\x4f\x4e";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0, $this->mo2f_kbaquestions);
goto Afi;
pM3:
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("\145\x6d\x70\x74\x79\137\165\x73\x65\x72\156\x61\x6d\x65", __("\x3c\x73\164\x72\x6f\156\x67\x3e\105\122\x52\117\x52\x3c\x2f\163\x74\162\x6f\x6e\147\x3e\72\x20\x41\156\x20\145\x72\162\x6f\x72\40\157\x63\x63\165\162\145\144\x20\x77\150\x69\154\x65\x20\x70\162\157\x63\x65\x73\x73\x69\x6e\x67\40\x79\157\x75\x72\40\162\145\161\165\145\163\x74\x2e\40\x50\x6c\145\141\163\x65\40\124\x72\171\40\x61\x67\141\x69\x6e\56"));
return $wX;
Afi:
G08:
goto cfy;
CRF:
$Iv = get_user_meta($bR, "\x6d\x6f\x32\x66\x5f\153\142\141\x5f\143\150\141\x6c\154\x65\x6e\147\x65", false);
$yx = array_keys($Iv[0]);
$Yb = array_rand($yx, 2);
$N6 = $yx[$Yb[0]];
$wu = $yx[$Yb[1]];
$lY[0] = array("\161\165\145\163\x74\151\x6f\x6e" => $N6);
$lY[1] = array("\161\x75\x65\163\x74\x69\x6f\156" => $wu);
update_user_meta($bR, "\153\x62\141\x5f\161\165\145\x73\x74\x69\157\x6e\163\x5f\165\163\145\x72", $lY);
$oR = __("\x50\154\x65\141\163\x65\x20\x61\156\163\x77\x65\x72\x20\x74\150\145\40\146\157\x6c\154\157\167\151\156\147\x20\x71\165\x65\163\x74\151\157\x6e\163\x3a", "\155\151\156\151\157\162\x61\x6e\x67\145\55\x32\55\x66\x61\143\x74\157\x72\55\141\165\164\x68\145\x6e\164\x69\143\141\164\151\157\156");
$o4 = "\115\117\x5f\x32\x5f\106\x41\x43\x54\117\x52\137\x43\110\x41\114\x4c\105\116\x47\x45\137\113\x42\101\137\x41\x55\x54\110\105\x4e\124\x49\103\101\124\111\x4f\116";
$l3 = $lY;
MO2f_Utility::mo2f_set_transient($d0, "\155\157\x5f\62\137\x66\x61\x63\x74\157\x72\137\x6b\142\x61\137\161\x75\145\163\164\x69\157\156\163", $lY);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0, $this->mo2f_kbaquestions);
cfy:
}
function miniorange_pass2login_form_fields($o4 = null, $oR = null, $kO = null, $Nc = null, $dj = null, $R5 = null)
{
global $ce;
$Um = $o4;
$Jb = $oR;
$OZ = wp_get_current_user();
switch ($Um) {
case "\x4d\117\x5f\62\137\106\x41\x43\124\x4f\122\137\103\110\x41\x4c\x4c\105\116\x47\105\137\115\117\102\x49\114\x45\x5f\x41\x55\x54\x48\105\x4e\x54\111\x43\101\x54\111\117\116":
$Yy = $this->mo2f_transactionid ? $this->mo2f_transactionid : MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\62\146\137\164\x72\x61\x6e\163\141\x63\x74\x69\157\x6e\111\144");
mo2f_get_qrcode_authentication_prompt($Um, $Jb, $kO, $Nc, $dj, $Yy);
exit;
goto wR_;
case "\x4d\x4f\x5f\x32\x5f\x46\x41\x43\x54\117\x52\137\x43\x48\x41\114\114\x45\116\x47\105\137\x53\117\x46\x54\x5f\x54\x4f\x4b\105\x4e":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\x32\146\x5f\143\165\162\x72\145\x6e\x74\137\x75\x73\x65\162\137\x69\144");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
goto wR_;
case "\115\x4f\137\x32\137\x46\x41\x43\124\x4f\122\x5f\x43\x48\x41\x4c\114\105\x4e\x47\x45\x5f\117\x54\120\137\117\x56\105\122\137\x45\x4d\101\111\x4c":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\146\137\x63\165\x72\162\145\x6e\x74\x5f\x75\x73\x65\x72\x5f\151\x64");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR, $R5);
exit;
goto wR_;
case "\115\x4f\x5f\x32\137\106\101\x43\x54\117\x52\137\103\110\x41\x4c\x4c\105\116\x47\x45\137\x4f\x54\120\x5f\117\x56\x45\x52\x5f\x53\115\x53":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\157\x32\146\x5f\x63\x75\x72\x72\145\156\164\x5f\165\x73\145\162\137\x69\144");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
goto wR_;
case "\x4d\117\137\x32\x5f\x46\101\x43\124\117\122\x5f\103\110\x41\x4c\x4c\105\116\x47\x45\x5f\120\110\117\116\x45\137\x56\105\x52\x49\x46\111\x43\x41\x54\111\117\116":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\x6d\157\62\146\137\x63\x75\162\x72\x65\x6e\x74\x5f\165\x73\145\162\x5f\151\x64");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
goto wR_;
case "\115\117\x5f\x32\x5f\x46\101\103\124\x4f\x52\x5f\x43\110\x41\114\x4c\105\x4e\107\x45\137\x4f\124\120\137\x4f\126\105\x52\x5f\x54\105\x4c\x45\x47\x52\x41\x4d":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_retrieve_user_temp_values("\155\x6f\x32\146\137\x63\165\x72\x72\x65\156\164\x5f\x75\x73\145\x72\x5f\x69\x64", $dj);
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
case "\x4d\x4f\137\x32\137\x46\x41\x43\x54\117\x52\137\103\x48\x41\114\x4c\105\x4e\107\105\x5f\107\x4f\x4f\107\114\x45\137\101\x55\x54\110\105\x4e\x54\x49\103\x41\124\111\117\116":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\157\62\146\137\x63\x75\162\162\x65\156\x74\137\x75\163\x65\162\x5f\151\x64");
mo2f_get_otp_authentication_prompt($Um, $Jb, $kO, $dj, $bR);
exit;
goto wR_;
case "\x4d\x4f\137\x32\137\x46\x41\x43\x54\x4f\x52\x5f\103\x48\x41\x4c\114\105\x4e\x47\x45\137\x4b\x42\101\137\101\x4e\104\137\x4f\x54\120\x5f\117\126\x45\x52\x5f\x45\115\101\111\x4c":
mo2f_get_forgotphone_form($Um, $Jb, $kO, $dj);
exit;
goto wR_;
case "\115\117\x5f\62\x5f\x46\101\x43\x54\x4f\x52\x5f\x43\x48\101\x4c\114\x45\x4e\x47\105\x5f\x50\125\123\x48\x5f\116\117\124\x49\x46\111\103\101\x54\111\x4f\116\123":
$Yy = $this->mo2f_transactionid ? $this->mo2f_transactionid : MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\x32\146\137\164\162\x61\156\x73\141\x63\164\x69\x6f\156\x49\x64");
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\x66\137\143\x75\x72\x72\145\x6e\164\x5f\x75\163\145\162\x5f\x69\x64");
mo2f_get_push_notification_oobemail_prompt($bR, $Um, $Jb, $kO, $dj, $Yy);
exit;
goto wR_;
case "\115\x4f\137\x32\137\106\x41\x43\x54\117\122\137\103\110\x41\114\114\x45\x4e\x47\105\137\117\117\x42\x5f\x45\x4d\101\x49\x4c":
$Yy = $this->mo2f_transactionid ? $this->mo2f_transactionid : MO2f_Utility::mo2f_get_transient($dj, "\155\157\62\x66\137\164\162\x61\x6e\163\141\143\x74\151\x6f\x6e\x49\144");
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\146\x5f\x63\x75\162\162\145\156\x74\137\165\163\x65\x72\137\x69\x64");
mo2f_get_push_notification_oobemail_prompt($bR, $Um, $Jb, $kO, $dj, $Yy);
exit;
goto wR_;
case "\115\117\137\62\137\x46\101\x43\124\x4f\122\x5f\x52\105\103\x4f\x4e\x46\x49\107\137\107\x4f\117\107\114\x45":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\x66\x5f\143\165\162\x72\x65\x6e\164\137\165\x73\145\162\x5f\151\x64");
$this->mo2f_redirect_shortcode_addon($bR, $Um, $Jb, "\x72\145\x63\x6f\156\146\x69\x67\x75\162\x65\137\147\157\x6f\147\154\145");
exit;
goto wR_;
case "\115\117\x5f\62\137\x46\x41\103\x54\x4f\122\137\122\x45\103\117\116\x46\111\107\x5f\113\x42\x41":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\x32\146\137\x63\x75\162\x72\x65\156\x74\137\165\x73\x65\162\x5f\x69\144");
$this->mo2f_redirect_shortcode_addon($bR, $Um, $Jb, "\162\145\143\157\x6e\146\x69\147\x75\162\x65\x5f\x6b\x62\141");
exit;
goto wR_;
case "\x4d\117\137\62\137\106\x41\103\x54\117\122\x5f\x53\x45\x54\125\x50\137\123\x55\x43\103\x45\123\x53":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\62\146\137\143\165\x72\x72\x65\x6e\164\x5f\165\163\145\x72\137\x69\144");
MO2f_Utility::mo2f_debug_file("\x4d\117\x20\62\x6e\144\x20\106\141\x63\164\x6f\x72\x20\123\x65\164\x75\160\40\123\x75\x63\143\145\163\x73\146\165\154\154\x79\x20" . "\x55\x73\x65\x72\x5f\x49\x50\55" . $ce->get_client_ip() . "\40\x55\163\145\162\x5f\x49\144\55" . $OZ->ID . "\40\x45\x6d\141\151\x6c\55" . $OZ->user_email);
$this->mo2f_inline_setup_success($bR, $kO, $dj);
goto wR_;
case "\115\x4f\x5f\x32\x5f\x46\101\103\x54\117\122\137\x43\x48\x41\114\114\x45\x4e\x47\105\x5f\x4b\102\x41\x5f\101\x55\x54\110\105\116\124\111\103\101\124\x49\117\x4e":
$kj = $this->mo2f_kbaquestions ? $this->mo2f_kbaquestions : MO2f_Utility::mo2f_get_transient($dj, "\x6d\x6f\137\x32\137\x66\x61\x63\164\157\162\137\153\142\141\137\x71\x75\145\x73\164\x69\x6f\156\163");
if (MO2F_IS_ONPREM) {
goto ZRH;
}
mo2f_get_kba_authentication_prompt($Um, $Jb, $kO, $dj, $kj);
goto qb0;
ZRH:
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\x32\x66\137\x63\x75\162\x72\145\x6e\x74\137\x75\163\x65\x72\x5f\x69\x64");
$in = get_user_meta($bR, "\153\142\141\x5f\161\x75\x65\163\x74\151\157\156\163\137\x75\163\145\162");
mo2f_get_kba_authentication_prompt($Um, $Jb, $kO, $dj, $in[0]);
qb0:
exit;
goto wR_;
case "\115\x4f\x5f\62\x5f\x46\x41\103\124\117\x52\137\122\x45\x4d\x45\115\x42\105\122\x5f\124\122\x55\x53\x54\x45\104\x5f\x44\x45\x56\111\x43\x45":
mo2f_get_device_form($kO, $dj);
exit;
goto wR_;
case "\x4d\117\x5f\x32\137\106\x41\x43\124\x4f\x52\x5f\120\x52\117\115\x50\x54\137\x55\123\105\x52\x5f\x46\x4f\x52\x5f\62\x46\101\x5f\x4d\105\x54\110\117\104\x53":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\157\62\x66\137\x63\165\x72\x72\x65\x6e\x74\x5f\x75\x73\145\162\137\x69\144");
$current_user = get_userdata($bR);
$aA = fetch_methods($current_user);
global $aq;
if (sizeof($aA) > 1 && "\115\x4f\137\62\x5f\x46\x41\103\x54\117\122\x5f\x49\x4e\x49\124\x49\101\114\x49\x5a\x45\x5f\124\127\x4f\x5f\106\101\103\124\x4f\x52" === $aq->get_user_detail("\155\x6f\x5f\62\x66\141\x63\x74\x6f\x72\x5f\165\163\145\x72\137\x72\145\x67\x69\x73\164\x72\x61\164\151\157\x6e\x5f\163\164\141\x74\x75\x73", $bR)) {
goto BbD;
}
if ((in_array("\123\x4d\123", $aA) || in_array("\123\115\x53\40\x41\x4e\104\x20\x45\x4d\101\111\114", $aA) || in_array("\120\x48\117\116\105\x20\126\x45\x52\x49\106\x49\x43\x41\124\x49\117\116", $aA)) && "\115\x4f\137\62\x5f\x46\x41\x43\x54\x4f\x52\x5f\x4b\x42\101\x5f\123\x45\x54\125\120\137\122\x45\115\101\111\x4e\111\x4e\x47" !== $aq->get_user_detail("\155\157\x5f\62\146\141\143\164\x6f\162\x5f\x75\163\x65\162\x5f\x72\x65\147\x69\x73\164\x72\141\x74\x69\157\156\137\163\164\141\x74\165\x73", $bR) && "\115\117\137\x32\137\x46\x41\103\x54\x4f\x52\x5f\117\124\120\137\105\x4d\101\x49\114\x5f\x53\105\x54\x55\120\137\122\105\x4d\x41\x49\x4e\x49\116\x47" !== $aq->get_user_detail("\155\x6f\x5f\x32\146\141\143\x74\x6f\162\x5f\165\163\145\x72\x5f\x72\145\147\x69\x73\164\x72\x61\164\x69\x6f\x6e\x5f\163\x74\141\164\x75\163", $bR) && get_user_meta($bR, "\155\x6f\x32\x66\137\x72\x65\143\157\156\x66\x69\147\165\162\x61\164\x69\157\x6e\x5f\x6f\x6e\x5f\145\x6d\141\151\x6c", true) !== true) {
goto i40;
}
if ((in_array("\x53\x4f\x46\124\x20\124\x4f\113\105\116", $aA) || in_array("\x50\125\x53\110\x20\x4e\x4f\x54\111\106\111\103\101\x54\x49\117\116\123", $aA) || in_array("\115\117\102\x49\114\x45\40\x41\125\x54\x48\x45\x4e\x54\111\103\101\x54\111\117\116", $aA)) && "\x4d\x4f\137\62\137\106\101\x43\124\117\122\137\113\102\x41\137\123\105\124\x55\120\137\x52\x45\115\x41\x49\116\111\116\107" !== $aq->get_user_detail("\155\157\x5f\x32\x66\x61\x63\164\x6f\162\x5f\x75\x73\145\x72\137\x72\145\x67\151\x73\x74\162\x61\x74\151\157\156\137\163\164\x61\x74\x75\163", $bR) && "\115\117\137\62\x5f\x46\x41\103\124\117\x52\137\117\x54\x50\x5f\x45\x4d\101\111\114\x5f\x53\105\x54\x55\120\x5f\122\105\115\101\x49\116\x49\116\x47" !== $aq->get_user_detail("\155\157\x5f\x32\146\x61\x63\164\x6f\x72\137\x75\163\145\162\x5f\162\145\147\x69\163\164\x72\x61\x74\151\x6f\156\x5f\163\x74\x61\164\165\x73", $bR) && get_user_meta($bR, "\155\157\x32\146\137\x72\145\143\x6f\156\x66\151\147\x75\162\141\164\x69\x6f\x6e\x5f\157\156\137\x65\155\141\x69\x6c", true) !== true) {
goto zdN;
}
if (in_array("\107\x4f\117\x47\x4c\x45\x20\101\125\124\x48\x45\x4e\x54\x49\103\x41\x54\117\x52", $aA) && "\x4d\x4f\137\x32\137\x46\x41\103\124\117\122\137\x4b\102\x41\137\x53\x45\124\125\120\137\122\105\115\101\111\116\111\x4e\107" !== $aq->get_user_detail("\x6d\157\137\62\x66\141\x63\x74\x6f\162\137\165\x73\x65\x72\x5f\162\x65\147\x69\163\x74\162\141\164\151\157\x6e\x5f\163\164\x61\164\165\163", $bR) && "\115\x4f\137\x32\x5f\x46\x41\103\x54\x4f\122\137\117\124\120\x5f\105\x4d\x41\111\x4c\x5f\123\105\x54\125\120\x5f\122\x45\115\101\111\x4e\x49\116\107" !== $aq->get_user_detail("\155\x6f\x5f\x32\146\x61\x63\x74\157\162\137\165\x73\x65\162\137\x72\145\x67\151\163\164\162\x61\164\x69\x6f\156\x5f\163\164\141\164\x75\163", $bR)) {
goto ezo;
}
if (in_array("\113\x42\x41", $aA) && "\x4d\117\x5f\x32\137\x46\101\103\124\x4f\x52\x5f\113\x42\101\x5f\x53\105\124\x55\120\x5f\122\x45\x4d\101\111\x4e\x49\x4e\x47" !== $aq->get_user_detail("\x6d\x6f\x5f\62\146\x61\143\x74\157\x72\137\x75\163\145\x72\x5f\x72\x65\x67\151\x73\x74\162\141\164\x69\x6f\156\x5f\163\164\x61\164\165\163", $bR) && "\115\x4f\137\x32\x5f\x46\101\x43\124\117\x52\137\x4f\x54\x50\137\x45\115\101\111\114\137\123\105\124\x55\x50\137\x52\x45\115\101\x49\116\111\116\107" !== $aq->get_user_detail("\155\157\x5f\x32\x66\141\143\164\157\x72\137\x75\x73\x65\162\x5f\162\145\147\151\x73\x74\162\x61\x74\x69\x6f\x6e\x5f\x73\164\x61\164\x75\x73", $bR)) {
goto Pzn;
}
if (in_array("\117\x54\x50\x20\117\126\105\x52\40\x54\105\114\105\x47\x52\x41\115", $aA) && "\x4d\x4f\137\x32\x5f\106\x41\103\x54\117\x52\137\113\102\x41\137\123\105\x54\x55\x50\137\122\x45\115\101\111\116\x49\x4e\107" !== $aq->get_user_detail("\155\157\137\x32\146\x61\143\164\x6f\x72\x5f\165\163\145\x72\137\x72\145\x67\x69\x73\x74\x72\x61\164\151\157\156\137\163\x74\x61\x74\x75\163", $bR) && "\115\x4f\x5f\62\x5f\106\101\x43\x54\117\122\x5f\117\124\120\137\105\x4d\x41\x49\114\x5f\123\105\x54\125\120\x5f\122\x45\x4d\101\111\116\x49\x4e\x47" !== $aq->get_user_detail("\155\x6f\137\62\x66\x61\143\x74\157\x72\137\x75\163\x65\x72\137\162\145\147\151\x73\x74\x72\141\x74\x69\x6f\x6e\137\x73\x74\x61\x74\165\163", $bR)) {
goto sEx;
}
if ((in_array("\117\124\120\x20\x4f\126\105\122\x20\105\x4d\101\x49\114", $aA) || in_array("\117\x54\x50\137\117\x56\105\x52\137\105\x4d\x41\x49\114", $aA)) && "\115\117\x5f\62\137\x46\x41\103\124\117\x52\137\113\x42\x41\137\x53\x45\124\125\x50\x5f\x52\105\x4d\x41\111\x4e\x49\x4e\x47" !== $aq->get_user_detail("\x6d\157\x5f\x32\146\x61\143\164\x6f\x72\x5f\x75\x73\145\x72\x5f\162\145\147\151\163\x74\162\x61\x74\151\x6f\156\x5f\163\x74\141\164\165\163", $bR)) {
goto r_m;
}
$K4 = "\x4f\125\124\40\117\106\x20\x42\x41\x4e\104\x20\x45\x4d\x41\111\114";
goto q2F;
r_m:
$K4 = "\117\x54\120\40\x4f\166\x65\162\x20\105\155\x61\151\154";
q2F:
$aq->update_user_details($bR, array("\x6d\x6f\62\x66\137\143\x6f\156\x66\151\147\x75\x72\x65\x64\x5f\62\106\101\137\155\x65\164\x68\x6f\144" => $K4));
$qf = new Two_Factor_Setup();
$vj = get_site_option("\155\157\x32\146\x5f\145\155\141\x69\x6c\137\x6d\145\x74\141\137\153\145\x79") && !empty(get_user_meta($bR, get_site_option("\x6d\157\x32\146\x5f\145\155\x61\x69\x6c\x5f\155\145\164\x61\137\153\x65\171"), true)) ? get_user_meta($bR, get_site_option("\x6d\157\62\x66\x5f\x65\x6d\x61\x69\154\137\155\x65\164\141\x5f\153\145\171"), true) : $aq->get_user_detail("\155\157\x32\146\137\x75\x73\145\162\x5f\x65\155\x61\151\x6c", $bR);
$qf->mo2f_update_userinfo($vj, $K4, null, null, null);
$kw = $aq->get_user_detail("\x6d\x6f\x5f\x32\x66\141\x63\x74\157\x72\x5f\165\x73\145\162\137\x72\x65\147\151\x73\164\x72\141\164\151\157\156\137\x73\164\x61\164\x75\163", $bR);
if ("\x30" === get_option("\x6d\157\x32\146\137\145\156\141\x62\154\x65\137\145\155\x61\151\154\143\x68\x61\156\147\145")) {
goto P9Z;
}
$aq->update_user_details($bR, array("\x6d\x6f\x5f\x32\x66\x61\143\x74\157\162\x5f\165\163\145\x72\x5f\162\145\x67\151\x73\164\162\141\164\151\157\156\x5f\x73\x74\141\164\165\x73" => "\x4d\x4f\137\62\137\106\x41\x43\x54\117\x52\137\120\x4c\x55\x47\x49\x4e\x5f\123\105\x54\x54\111\116\107\123"));
if (MoWpnsUtility::get_mo2f_db_option("\155\157\62\x66\137\x64\151\x73\141\142\x6c\x65\x5f\153\142\141", "\163\x69\x74\145\137\157\x70\x74\x69\x6f\x6e")) {
goto alG;
}
$aq->update_user_details($bR, array("\x6d\x6f\x32\146\137\117\124\120\x4f\166\x65\162\x45\155\141\151\x6c\137\143\x6f\x6e\146\151\147\137\163\164\141\x74\x75\x73" => true));
prompt_user_for_setup_success($bR, '', '', $dj, $kO);
goto ZAX;
alG:
$MC = new Miniorange_Password_2Factor_Login();
$MC->mo2fa_pass2login($kO, $dj);
ZAX:
goto xc1;
P9Z:
if ("\115\117\x5f\62\x5f\x46\101\x43\124\117\122\x5f\111\x4e\111\x54\x49\x41\114\x49\132\x45\137\x54\x57\x4f\x5f\x46\101\103\124\x4f\122" === $kw || "\x4d\117\x5f\62\x5f\106\x41\x43\124\x4f\122\137\x4f\x54\x50\x5f\105\115\101\x49\x4c\x5f\x53\105\x54\x55\120\x5f\122\x45\115\101\111\x4e\111\116\x47" === $kw) {
goto qdK;
}
prompt_user_for_setup_success($bR, $Um, '', $dj, $kO);
goto OLx;
qdK:
if (!(sizeof($aA) > 1 && get_user_meta($bR, "\155\157\62\146\x5f\142\x61\x63\153\137\164\x6f\137\x69\156\154\x69\x6e\145\x5f\x72\145\147", true))) {
goto K4P;
}
prompt_user_to_select_2factor_mthod_inline($bR, $Um, $Jb, $kO, $dj, $Nc);
delete_user_meta($bR, "\x6d\157\x32\x66\x5f\142\141\143\153\x5f\164\157\137\151\x6e\154\x69\156\145\137\162\x65\147");
exit;
K4P:
if ($K4 == "\x4f\124\x50\40\x4f\166\x65\x72\40\x45\x6d\141\x69\154") {
goto m84;
}
$vS = new Miniorange_Password_2Factor_Login();
$vS->mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $K4);
goto k1P;
m84:
prompt_user_for_phone_setup($bR, $Um, $Jb, $K4, $kO, $dj);
k1P:
OLx:
xc1:
goto n0r;
sEx:
$aq->update_user_details($bR, array("\155\x6f\62\x66\x5f\143\x6f\156\x66\x69\x67\165\x72\145\144\x5f\62\x46\x41\x5f\155\x65\164\x68\x6f\x64" => "\x4f\x54\x50\40\117\166\145\x72\x20\x54\145\154\x65\x67\x72\x61\x6d"));
prompt_user_for_phone_setup($bR, $Um, $Jb, "\117\124\120\40\x4f\x76\x65\x72\x20\x54\x65\154\x65\147\162\x61\x6d", $kO, $dj);
exit;
n0r:
goto rmR;
Pzn:
$aq->update_user_details($bR, array("\155\157\62\x66\x5f\x63\x6f\156\x66\151\147\x75\162\x65\144\x5f\x32\106\101\137\155\x65\164\150\157\x64" => "\x4b\102\101"));
prompt_user_for_kba_setup($bR, $Um, $Jb, $kO, $dj);
exit;
rmR:
goto RHY;
ezo:
$aq->update_user_details($bR, array("\155\x6f\62\x66\x5f\143\157\156\x66\151\x67\x75\x72\x65\144\137\62\106\101\x5f\x6d\x65\164\150\157\x64" => "\x47\117\x4f\107\114\105\40\101\x55\124\x48\x45\x4e\x54\x49\103\101\124\117\x52"));
delete_user_meta($bR, "\x6d\157\62\146\137\162\x65\x63\x6f\x6e\146\151\x67\165\x72\141\164\151\157\156\x5f\x6f\x6e\137\x65\155\141\151\154");
prompt_user_for_google_authenticator_setup($bR, $Um, $Jb, $kO, $dj);
exit;
RHY:
goto nQk;
zdN:
$K4 = array_shift($aA);
$aq->update_user_details($bR, array("\155\157\62\x66\137\x63\157\x6e\146\151\x67\165\x72\145\144\x5f\62\x46\x41\137\x6d\x65\x74\x68\x6f\x64" => $K4));
prompt_user_for_miniorange_app_setup($bR, $Um, $Jb, $dj, $Nc, $K4, $kO);
exit;
nQk:
goto KaT;
i40:
if (get_site_option("\x6d\x6f\x32\x66\137\x70\150\x6f\156\x65\137\155\145\164\141\137\x6b\x65\x79") && !empty(get_user_meta($bR, get_site_option("\x6d\157\62\x66\x5f\x70\x68\157\x6e\145\137\155\x65\x74\x61\137\153\x65\171")))) {
goto s2s;
}
$K4 = array_shift($aA);
$aq->update_user_details($bR, array("\155\x6f\x32\x66\x5f\143\157\x6e\146\x69\x67\165\x72\x65\x64\x5f\x32\x46\x41\137\155\x65\x74\150\x6f\x64" => $K4));
prompt_user_for_phone_setup($bR, $Um, $Jb, $K4, $kO, $dj);
goto Hns;
s2s:
do_action("\155\157\x32\146\137\x70\x5f\x73\x61\x76\145\137\x6f\x74\160\x5f\x6f\x76\x65\162\137\x73\x6d\163", $bR, $kO, $dj);
Hns:
exit;
KaT:
goto F1U;
BbD:
if (get_user_meta($bR, "\x6d\157\x32\x66\137\162\x65\143\x6f\x6e\146\x69\x67\x75\x72\141\x74\151\x6f\x6e\x5f\x6f\x6e\x5f\145\x6d\x61\x69\154", true) == true) {
goto XIG;
}
prompt_user_to_select_2factor_mthod_inline($bR, $Um, $Jb, $kO, $dj, $Nc);
goto zJt;
XIG:
$aq->update_user_details($bR, array("\155\157\x32\x66\x5f\143\x6f\x6e\146\x69\147\x75\162\x65\x64\x5f\62\106\x41\x5f\155\x65\164\150\x6f\144" => "\x47\117\117\107\x4c\105\x20\x41\125\124\x48\105\x4e\124\x49\x43\x41\x54\117\x52"));
delete_user_meta($bR, "\155\157\x32\x66\x5f\x72\x65\143\x6f\156\x66\151\x67\x75\162\141\x74\x69\157\x6e\x5f\x6f\156\x5f\145\155\141\151\x6c");
prompt_user_for_google_authenticator_setup($bR, $Um, $Jb, $kO, $dj);
zJt:
exit;
F1U:
exit;
goto wR_;
case "\115\x4f\x5f\62\x5f\x46\x41\x43\x54\117\122\x5f\x50\122\x4f\x4d\x50\x54\x5f\x46\x4f\x52\x5f\x52\105\x4c\117\x47\x49\116":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\x6d\157\x32\146\137\143\165\x72\162\x65\x6e\164\x5f\165\163\x65\162\x5f\151\144");
prompt_user_for_relogin($bR, $Um, $Jb, $kO, $dj);
exit;
case "\x4d\117\x5f\62\137\106\101\103\x54\x4f\122\137\120\122\117\115\120\x54\x5f\x46\x4f\122\137\125\123\105\122\x5f\122\105\x47\111\x53\x54\122\101\x54\111\117\x4e":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\x6d\157\x32\x66\x5f\x63\165\x72\162\145\156\x74\137\x75\x73\145\162\137\x69\x64");
MO2f_Utility::mo2f_debug_file("\x50\162\x6f\155\x74\145\x64\x20\x66\x6f\x72\40\165\x73\145\x72\x20\x65\x6d\141\x69\x6c\40\x76\x61\x72\x69\146\151\x63\x61\x74\151\x6f\x6e\40" . "\125\163\145\162\137\x49\x50\x2d" . $ce->get_client_ip() . "\40\x55\x73\x65\x72\137\111\x64\x2d" . $OZ->ID . "\x20\x45\x6d\x61\151\154\x2d" . $OZ->user_email);
prompt_user_to_register($bR, $Um, $Jb, $kO, $dj);
exit;
case "\x4d\117\137\x32\x5f\106\101\103\124\117\x52\x5f\x50\122\x4f\x4d\120\x54\137\106\x4f\x52\137\125\123\x45\122\137\122\x45\x47\137\x4f\124\x50":
prompt_user_for_validate_otp($Um, $Jb, $kO, $dj);
exit;
case "\115\x4f\x5f\x32\137\x46\101\103\x54\x4f\x52\137\103\x48\x41\114\x4c\105\116\x47\105\137\x42\101\103\113\x55\x50":
mo2f_backup_form($Um, $Jb, $kO, $dj);
exit;
case "\x4d\117\137\62\137\106\101\103\124\117\x52\x5f\x47\x45\116\105\x52\101\124\105\x5f\x42\x41\x43\x4b\125\120\x5f\x43\117\104\105\123":
$bR = $this->mo2f_userID ? $this->mo2f_userID : MO2f_Utility::mo2f_get_transient($dj, "\155\x6f\62\146\x5f\143\x75\162\x72\145\156\164\x5f\x75\163\145\162\137\x69\144");
mo2f_backup_codes_generate($bR, $kO, $dj);
exit;
default:
$this->mo_2_factor_pass2login_show_wp_login_form();
goto wR_;
}
n7r:
wR_:
}
function miniorange_pass2login_check_mobile_status($Um)
{
if (!($Um == "\x4d\x4f\x5f\x32\x5f\x46\101\103\124\117\122\x5f\103\x48\101\x4c\114\105\x4e\107\x45\137\115\117\x42\x49\114\x45\137\101\x55\124\110\x45\x4e\124\x49\x43\101\124\x49\117\x4e")) {
goto sxC;
}
return true;
sxC:
return false;
}
function miniorange_pass2login_check_otp_status($Um, $W_ = false)
{
if (!($Um == "\115\x4f\x5f\x32\137\x46\101\x43\x54\117\122\x5f\x43\110\101\x4c\x4c\105\116\x47\x45\137\x53\x4f\x46\x54\137\124\x4f\113\x45\116" || $Um == "\115\x4f\137\62\137\106\101\103\x54\x4f\x52\137\x43\110\x41\x4c\114\105\116\107\x45\137\x4f\124\x50\137\x4f\x56\x45\x52\137\x45\115\101\111\x4c" || $Um == "\x4d\117\137\62\137\106\101\x43\x54\x4f\122\x5f\x43\x48\x41\x4c\x4c\105\x4e\x47\x45\137\117\124\120\137\x4f\x56\105\122\137\123\115\123" || $Um == "\115\x4f\137\62\137\x46\101\103\x54\x4f\x52\x5f\x43\110\101\x4c\x4c\105\116\107\x45\137\x50\110\117\116\105\x5f\126\x45\122\111\x46\x49\103\101\124\x49\117\x4e" || $Um == "\115\117\x5f\x32\x5f\106\101\103\x54\x4f\x52\137\x43\110\101\114\114\x45\x4e\107\x45\x5f\107\x4f\x4f\x47\114\105\137\101\125\x54\x48\105\x4e\x54\111\x43\101\x54\111\x4f\x4e")) {
goto gZl;
}
return true;
gZl:
return false;
}
function miniorange_pass2login_check_forgotphone_status($Um)
{
if (!($Um == "\x4d\117\x5f\62\137\x46\x41\x43\x54\117\122\x5f\103\x48\101\x4c\114\x45\x4e\x47\x45\x5f\x4b\x42\x41\137\x41\x4e\x44\137\117\124\x50\x5f\x4f\126\x45\122\137\105\x4d\x41\x49\114")) {
goto ghs;
}
return true;
ghs:
return false;
}
function miniorange_pass2login_check_push_oobemail_status($Um)
{
if (!($Um == "\x4d\x4f\137\62\137\x46\x41\103\x54\x4f\122\137\x43\x48\x41\114\x4c\x45\x4e\x47\x45\x5f\x50\125\x53\110\x5f\x4e\117\x54\x49\106\111\x43\x41\x54\111\117\116\123" || $Um == "\115\117\x5f\62\x5f\106\101\103\124\117\x52\137\x43\110\101\x4c\x4c\x45\116\x47\x45\137\117\x4f\x42\137\105\x4d\101\111\114")) {
goto tTE;
}
return true;
tTE:
return false;
}
function miniorange_pass2login_reconfig_google($Um)
{
if (!($Um == "\115\x4f\x5f\x32\137\106\101\103\124\x4f\x52\x5f\x52\x45\x43\x4f\x4e\x46\x49\107\x5f\x47\117\x4f\107\x4c\x45")) {
goto aku;
}
return true;
aku:
return false;
}
function mo2f_redirect_shortcode_addon($mJ, $Um, $Jb, $M2)
{
do_action("\155\x6f\x32\x66\x5f\163\x68\x6f\162\164\x63\157\x64\x65\x5f\141\x64\x64\x6f\x6e", $mJ, $Um, $Jb, $M2);
}
function miniorange_pass2login_reconfig_kba($Um)
{
if (!($Um == "\115\117\137\62\137\x46\x41\103\124\117\x52\137\122\105\103\x4f\x4e\106\111\x47\137\113\x42\x41")) {
goto i4L;
}
return true;
i4L:
return false;
}
function miniorange_pass2login_check_kba_status($Um)
{
if (!($Um == "\115\117\x5f\x32\x5f\x46\x41\103\124\117\x52\137\x43\110\x41\x4c\x4c\105\x4e\x47\x45\137\113\x42\101\137\x41\125\x54\110\x45\116\x54\111\x43\101\x54\x49\x4f\x4e")) {
goto VPj;
}
return true;
VPj:
return false;
}
function miniorange_pass2login_check_trusted_device_status($Um)
{
if (!($Um == "\x4d\117\x5f\x32\137\x46\x41\x43\x54\117\122\137\122\105\115\x45\x4d\102\105\x52\137\x54\x52\x55\123\124\105\104\137\x44\x45\x56\x49\103\x45")) {
goto mE8;
}
return true;
mE8:
return false;
}
function mo_2_factor_pass2login_woocommerce()
{
echo "\11\x9\x9\x3c\151\x6e\160\165\x74\x20\164\171\160\145\75\x22\x68\x69\x64\144\145\x6e\x22\40\x6e\141\x6d\145\75\x22\155\x6f\x5f\x77\157\x6f\x63\157\155\x6d\145\162\143\145\x5f\x6c\157\147\151\156\x5f\x70\x72\157\x6d\x70\x74\x22\x20\x76\141\x6c\x75\x65\x3d\x22\61\42\76\xa\11\x9";
}
function mo_2_factor_pass2login_show_wp_login_form()
{
$dj = isset($_POST["\x73\145\163\163\x69\x6f\156\x5f\151\144"]) ? sanitize_text_field($_POST["\163\145\x73\x73\151\x6f\156\x5f\x69\x64"]) : null;
if (!is_null($dj)) {
goto MM0;
}
$dj = $this->create_session();
MM0:
if (!class_exists("\124\150\x65\155\x65\137\115\x79\137\114\x6f\x67\x69\x6e")) {
goto ZQl;
}
wp_enqueue_script("\164\x6d\154\x61\x6a\141\x78\137\x73\143\162\151\x70\164", plugins_url("\151\156\143\x6c\165\x64\x65\x73\57\152\163\57\164\x6d\x6c\141\x6a\141\x78\56\x6a\163", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_localize_script("\x74\x6d\x6c\x61\152\141\x78\137\163\143\x72\151\160\164", "\155\171\x5f\141\x6a\x61\x78\x5f\x6f\142\152\145\143\164", array("\x61\152\141\170\137\165\162\154" => admin_url("\x61\x64\155\x69\156\55\141\x6a\141\170\56\160\150\x70")));
ZQl:
echo "\11\11\x3c\160\x3e\x3c\151\156\160\165\164\40\164\x79\x70\x65\75\42\150\x69\144\x64\145\x6e\x22\x20\x6e\x61\x6d\x65\75\42\155\151\x6e\151\x6f\x72\141\156\x67\145\137\x6c\157\147\x69\156\x5f\156\x6f\156\x63\145\42\xa\x9\11\x9\11\40\40\166\x61\x6c\165\145\x3d\x22";
echo wp_create_nonce("\155\151\156\x69\157\162\141\156\x67\145\x2d\x32\x2d\x66\x61\x63\164\157\162\55\x6c\157\x67\151\x6e\x2d\156\x6f\x6e\143\145");
echo "\x22\x2f\x3e\12\12\x9\x9\11\74\x69\156\x70\165\164\x20\164\171\160\x65\x3d\x22\150\x69\x64\x64\x65\156\42\40\151\144\x3d\42\x73\x65\x73\163\x69\x64\42\x20\156\141\155\145\x3d\42\x73\x65\163\163\x69\x6f\x6e\137\x69\x64\x22\xa\x9\x9\11\x9\40\40\x20\166\x61\154\165\145\75\x22";
echo $dj;
echo "\42\57\76\xa\12\x9\x9\74\57\160\76\12\12\x9\x9";
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\62\x66\x5f\x72\145\155\x65\155\142\x65\x72\x5f\x64\145\x76\x69\x63\145");
if ($e8 && !is_user_logged_in()) {
goto Ova;
}
if (!MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\157\x32\x66\137\x65\x6e\x61\x62\x6c\145\137\x32\x66\141\x5f\160\162\157\155\x70\164\137\x6f\x6e\137\154\x6f\147\151\156\137\x70\x61\147\145", "\x67\145\164\x5f\157\x70\x74\151\157\x6e")) {
goto hlc;
}
echo "\x9\x3c\x70\76\12";
echo "\x9\x9\x3c\x6c\141\x62\145\x6c\x20\143\154\141\163\x73\x3d\x22\x6d\157\x32\146\x5f\x69\156\163\x74\165\143\164\x69\x6f\156\61\x22\x20\164\x69\164\x6c\x65\x3d\x22" . __("\x49\x66\40\x79\157\x75\x20\x64\x6f\156\47\x74\x20\150\141\x76\x65\x20\x32\x2d\146\x61\143\x74\157\162\x20\141\165\164\150\x65\x6e\164\151\143\141\x74\x69\157\156\40\x65\x6e\141\142\154\145\x64\x20\146\157\162\x20\171\157\165\x72\40\x57\x6f\x72\x64\x50\162\145\163\x73\40\141\x63\143\157\x75\x6e\164\54\40\154\x65\141\x76\x65\40\x74\x68\x69\163\40\x66\151\x65\x6c\144\x20\145\x6d\x70\164\x79\x2e", "\x67\x6f\157\x67\154\145\x2d\x61\x75\164\x68\145\x6e\164\x69\143\x61\164\157\162") . "\x22\76" . __("\x32\x20\106\x61\x63\x74\x6f\162\x20\x41\x75\x74\x68\x65\156\164\x69\143\141\x74\x69\157\x6e\40\143\x6f\144\x65\x2a", "\x67\x6f\157\147\154\x65\x2d\x61\x75\164\x68\x65\x6e\164\x69\x63\x61\x74\x6f\x72") . "\x3c\x73\160\141\x6e\x20\x69\144\75\42\x67\157\x6f\147\x6c\145\x2d\141\x75\x74\x68\55\151\156\x66\157\42\76\x3c\57\163\160\141\156\x3e\74\x62\162\x20\57\76\xa";
echo "\x9\11\74\x69\156\160\x75\164\x20\x74\171\x70\x65\75\x22\164\145\170\x74\42\x20\160\154\141\x63\145\x68\157\154\144\x65\x72\x3d\42\x4e\x6f\x20\163\x6f\x66\164\x20\x54\157\153\x65\x6e\x20\x3f\x20\x53\x6b\151\x70\42\x20\156\141\155\x65\x3d\x22\155\x6f\x5f\163\x6f\x66\164\164\x6f\153\x65\156\42\40\151\x64\x3d\x22\155\x6f\x32\x66\137\x32\146\141\x5f\143\x6f\x64\x65\x22\x20\x63\x6c\x61\x73\163\x3d\x22\155\157\x32\x66\137\x32\x66\x61\137\143\x6f\144\145\x22\x20\166\x61\154\x75\145\75\x22\x22\x20\x73\151\172\145\x3d\42\x32\60\42\40\163\164\171\154\x65\x3d\42\x69\x6d\x65\55\x6d\x6f\x64\145\72\40\x69\x6e\x61\143\164\151\x76\x65\x3b\42\x20\x2f\x3e\x3c\x2f\x6c\141\142\x65\x6c\x3e\12";
echo "\11\74\160\40\x63\x6c\141\x73\163\75\x22\155\x6f\x32\x66\x5f\x69\156\x73\x74\165\x63\x74\x69\x6f\x6e\x32\42\40\163\x74\x79\x6c\145\x3d\47\x63\157\x6c\157\x72\x3a\162\x65\144\x3b\x20\146\x6f\156\164\55\x73\x69\x7a\x65\x3a\61\x32\x70\170\x3b\160\141\144\144\151\156\x67\x3a\x35\x70\x78\47\76\x2a\x20\123\x6b\x69\x70\x20\x74\x68\145\40\141\165\x74\150\x65\156\x74\151\x63\x61\x74\151\x6f\x6e\x20\143\x6f\x64\145\x20\x69\146\x20\151\164\40\x64\x6f\x65\163\x6e\47\164\x20\141\x70\160\x6c\x79\56\x3c\x2f\x70\76\xa";
echo "\11\74\57\x70\76\12";
echo "\x20\xd\12";
echo "\40\xd\12";
echo "\xa";
hlc:
goto Mju;
Ova:
if (MO2F_IS_ONPREM) {
goto q72;
}
echo "\x9\x9\11\11\74\x70\x3e\74\151\156\x70\165\164\x20\164\171\160\x65\x3d\x22\150\x69\x64\x64\145\156\42\40\x69\x64\75\x22\x6d\151\x6e\x69\157\162\141\x6e\x67\x65\x5f\x72\x62\x61\137\x61\164\164\x72\151\142\x75\162\145\163\x22\40\156\x61\x6d\x65\x3d\x22\155\151\x6e\x69\x6f\162\141\156\x67\145\137\162\x62\141\x5f\x61\164\164\162\151\x62\165\x72\x65\163\42\x20\x76\141\154\x75\145\75\x22\x22\57\76\74\x2f\160\76\xa\x9\11\x9\11";
wp_enqueue_script("\155\157\x32\x66\141\x5f\152\x71\165\145\162\x79\x5f\163\143\162\151\160\x74", plugins_url("\151\x6e\143\154\165\144\145\x73\x2f\152\163\57\x72\142\141\57\152\x73\x2f\152\x71\165\x65\162\x79\55\61\x2e\x39\x2e\61\x2e\x6a\163", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\62\146\141\137\146\x6c\141\163\x68\x5f\x73\143\162\151\x70\164", plugins_url("\x69\x6e\x63\x6c\165\144\x65\x73\x2f\152\163\x2f\162\x62\141\57\152\x73\57\x6a\161\165\x65\x72\171\56\x66\154\141\163\x68\x2e\x6a\163", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\x32\146\x61\137\x75\141\x70\x61\x72\x73\145\162\137\x73\143\x72\151\160\x74", plugins_url("\151\156\x63\154\165\144\145\x73\57\x6a\163\57\x72\142\141\x2f\152\163\57\165\141\55\160\141\x72\x73\x65\x72\56\152\x73", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\62\146\141\x5f\143\154\x69\x65\156\164\x5f\163\x63\162\x69\160\164", plugins_url("\x69\156\143\154\x75\144\145\x73\57\152\163\57\x72\142\141\57\152\x73\x2f\x63\x6c\x69\x65\x6e\x74\56\152\163", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\x32\146\x61\x5f\144\145\166\x69\x63\x65\x5f\x73\143\x72\x69\160\164", plugins_url("\x69\156\143\x6c\165\x64\x65\163\x2f\x6a\163\x2f\162\142\x61\57\152\163\x2f\x64\x65\x76\x69\x63\x65\137\x61\x74\164\162\151\x62\165\164\x65\163\x2e\152\x73", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\157\62\x66\x61\137\163\x77\146\137\163\143\162\151\x70\164", plugins_url("\151\x6e\143\154\165\x64\145\163\x2f\x6a\x73\x2f\162\142\x61\57\152\163\x2f\x73\167\146\157\142\152\145\143\164\56\x6a\x73", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\x32\146\141\137\x66\x6f\x6e\164\137\x73\x63\x72\151\x70\x74", plugins_url("\151\x6e\143\154\x75\x64\145\x73\x2f\152\x73\x2f\x72\142\x61\57\x6a\x73\x2f\x66\x6f\x6e\x74\144\x65\164\145\143\164\56\152\x73", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\62\146\x61\137\x6d\165\162\x6d\165\162\137\163\143\162\x69\x70\x74", plugins_url("\151\x6e\x63\154\x75\144\145\163\x2f\152\x73\x2f\x72\x62\141\57\152\x73\57\155\x75\x72\x6d\165\162\150\141\x73\x68\63\x2e\x6a\163", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\62\x66\x61\x5f\155\x69\156\151\157\x72\141\x6e\147\145\137\x73\x63\x72\x69\160\x74", plugins_url("\151\156\x63\154\165\144\145\163\x2f\152\163\57\162\x62\141\x2f\x6a\163\x2f\x6d\151\x6e\x69\157\162\141\156\x67\145\x2d\x66\x70\x2e\152\x73", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
goto VUm;
q72:
echo "\x9\11\11\x9\12\11\11\11\x9\74\160\x3e\x3c\151\156\160\x75\x74\40\164\x79\160\x65\x3d\x22\x68\151\x64\144\x65\x6e\42\x20\x69\144\75\x22\x6d\151\x6e\x69\x6f\x72\141\x6e\147\145\137\x72\142\x61\137\x61\x74\164\162\x69\x62\x75\x72\x65\x73\42\x20\x6e\141\x6d\x65\75\x22\155\151\x6e\151\157\162\141\156\147\x65\137\162\x62\x61\137\x61\x74\164\162\151\x62\x75\x72\x65\163\42\40\166\141\154\165\x65\x3d\42\x22\57\76\x3c\57\160\x3e\xa\11\x9\x9\11";
wp_enqueue_script("\155\x6f\62\x66\141\137\155\x6f\144\x65\x5f\163\143\x72\151\160\164", plugins_url("\x69\156\143\x6c\x75\x64\145\163\x2f\152\x73\57\102\x72\x6f\x77\x73\x69\156\147\x4d\x6f\x64\x65\104\145\164\145\x63\164\157\162\x2e\x6a\163", dirname(dirname(__FILE__))), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\62\x66\141\137\x63\154\x69\x65\x6e\164\137\x6d\x69\x6e\x5f\x73\x63\x72\x69\160\x74", plugins_url("\151\156\143\x6c\x75\144\x65\163\x2f\x6a\x73\x2f\143\154\x69\145\x6e\164\x2e\x6d\x69\x6e\56\x6a\x73", dirname(dirname(__FILE__))), array(), MO2F_VERSION, true);
wp_enqueue_script("\155\x6f\x32\x66\x61\x5f\144\145\166\x69\143\x65\x5f\163\x63\162\x69\160\164", plugins_url("\x69\156\x63\x6c\x75\144\145\163\x2f\x6a\x73\x2f\144\145\166\x69\143\x65\x5f\x64\145\164\x61\x69\x6c\x73\56\152\x73", dirname(dirname(__FILE__))), array(), MO2F_VERSION, true);
VUm:
Mju:
}
function mo2f_pass2login_mobile_verification($user, $kO, $dj = null)
{
global $aq;
if (!is_null($dj)) {
goto m6P;
}
$dj = $this->create_session();
m6P:
$GH = $aq->get_user_detail("\155\x6f\62\146\137\x75\x73\x65\x72\x5f\x65\155\141\151\x6c", $user->ID);
$At = $_SERVER["\x48\124\124\120\137\125\123\x45\122\x5f\101\107\105\x4e\124"];
MO2f_Utility::mo2f_debug_file("\103\150\x65\143\153\x20\x75\x73\x65\162\40\x61\147\x65\156\164\40\164\x6f\40\x63\150\x65\143\153\x20\x72\145\x71\x75\x65\x73\x74\40\146\162\157\155\40\155\157\x62\151\x6c\145\40\x64\145\x76\x69\143\x65\40" . $At);
if (MO2f_Utility::check_if_request_is_from_mobile_device($At)) {
goto EEV;
}
$kx = new Customer_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\146\137\x63\165\x73\164\x6f\x6d\x65\x72\113\145\x79");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\x66\137\141\x70\151\x5f\x6b\145\171");
$CG = $kx->send_otp_token($GH, "\115\x4f\x42\111\114\x45\x20\101\x55\124\x48\x45\x4e\124\111\x43\101\124\x49\117\x4e", $Tp, $Lv);
$C7 = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto Bhq;
}
MO2f_Utility::mo2f_debug_file($o4 . "\x20\101\x6e\x20\x65\x72\x72\x6f\162\40\x6f\x63\x63\x75\162\x65\144\40\x77\x68\x69\154\145\40\160\x72\x6f\143\x65\x73\x73\151\156\x67\x20\171\x6f\x75\x72\40\x72\145\x71\165\145\163\164" . "\40\x55\163\145\162\137\x49\x50\55" . $ce->get_client_ip() . "\x20\x55\163\x65\x72\x5f\x49\144\x2d" . $user->ID . "\x20\105\155\141\x69\154\x2d" . $user->user_email);
$this->remove_current_activity($dj);
$wX = new WP_Error();
$wX->add("\145\155\x70\x74\x79\x5f\165\163\x65\x72\x6e\x61\x6d\145", __("\x3c\163\x74\162\x6f\156\147\x3e\x45\122\122\117\122\74\57\163\x74\162\x6f\156\147\76\72\x20\101\x6e\40\x65\x72\x72\157\162\40\157\143\x63\165\162\x65\144\40\167\x68\151\154\x65\40\x70\x72\x6f\143\145\163\x73\151\156\147\x20\171\x6f\165\x72\x20\x72\145\x71\x75\x65\x73\x74\56\x20\120\x6c\145\x61\163\x65\x20\124\162\171\x20\141\147\x61\151\156\x2e"));
return $wX;
goto kxj;
Bhq:
if ($C7["\x73\164\141\x74\x75\x73"] == "\123\x55\x43\x43\x45\x53\123") {
goto euq;
}
if ($C7["\163\164\141\x74\165\163"] == "\105\x52\122\117\122") {
goto lGm;
}
goto d2h;
euq:
$Nc = $C7["\161\162\x43\157\x64\145"];
MO2f_Utility::mo2f_set_transient($dj, "\x6d\157\x32\146\x5f\164\162\141\x6e\163\x61\143\x74\x69\157\156\x49\144", $C7["\x74\170\x49\144"]);
$this->mo2f_transactionid = $C7["\x74\170\x49\x64"];
$oR = '';
$o4 = "\x4d\117\x5f\x32\x5f\106\101\x43\x54\x4f\122\137\103\110\x41\x4c\x4c\105\x4e\x47\105\x5f\115\x4f\102\x49\114\105\137\101\125\124\110\x45\116\x54\111\103\x41\x54\x49\x4f\x4e";
MO2f_Utility::mo2f_debug_file($o4 . "\x20\x53\145\x6e\x74\40\x6d\151\x6e\151\x4f\162\x61\x6e\x67\x65\40\x51\122\x20\x63\157\144\x65\40\101\165\x74\x68\x65\x6e\x74\x69\143\141\164\151\157\x6e\40\x73\x75\x63\143\145\x73\163\146\x75\x6c\x6c\171" . "\40\125\163\x65\x72\137\111\120\x2d" . $ce->get_client_ip() . "\x20\x55\x73\145\162\x5f\111\144\55" . $user->ID . "\x20\105\x6d\141\151\x6c\x2d" . $user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, $Nc, $dj);
goto d2h;
lGm:
MO2f_Utility::mo2f_debug_file($o4 . "\40\x41\x6e\40\145\162\x72\157\x72\x20\x6f\x63\x63\x75\x72\145\144\x20\167\x68\151\154\x65\40\x70\162\157\x63\x65\163\163\151\x6e\147\x20\x79\157\x75\162\40\x72\145\161\165\x65\x73\164" . "\40\x55\163\145\162\137\111\120\x2d" . $ce->get_client_ip() . "\x20\x55\163\145\162\137\111\144\x2d" . $user->ID . "\40\x45\x6d\141\x69\154\55" . $user->user_email);
$this->remove_current_activity($dj);
$wX = new WP_Error();
$wX->add("\145\155\160\x74\x79\137\165\163\x65\x72\156\x61\155\145", __("\74\x73\x74\x72\157\156\147\76\105\122\x52\117\122\74\57\163\x74\x72\157\x6e\147\x3e\x3a\x20\x41\x6e\40\145\162\x72\157\x72\40\157\x63\x63\165\x72\x65\x64\40\167\150\x69\x6c\x65\x20\x70\162\x6f\143\x65\x73\x73\x69\x6e\147\40\x79\x6f\x75\162\x20\x72\145\161\x75\145\163\164\x2e\40\120\x6c\x65\x61\x73\145\x20\x54\162\171\40\141\x67\141\151\156\56"));
return $wX;
d2h:
kxj:
goto FLO;
EEV:
$tD = array("\x6d\157\x32\x66\55\154\157\147\x69\x6e\55\x71\162\x43\x6f\144\x65", "\x6d\157\62\146\137\164\x72\x61\156\x73\141\143\x74\151\157\156\111\144");
MO2f_Utility::unset_session_variables($tD);
MO2f_Utility::unset_cookie_variables($tD);
MO2f_Utility::unset_temp_user_details_in_table("\x6d\x6f\62\146\x5f\164\162\x61\156\163\x61\143\164\151\157\x6e\x49\x64", $dj);
$oR = sprintf(__("\120\x6c\145\x61\x73\145\40\x65\156\164\145\x72\40\x74\150\145\40\157\156\x65\x20\164\x69\x6d\x65\40\x70\x61\x73\163\143\x6f\x64\145\40\x73\150\x6f\167\156\x20\151\x6e\x20\164\x68\x65\x20\x6d\x69\156\x69\117\x72\x61\156\x67\145\x25\61\44\163\40\101\165\164\x68\145\x6e\164\x69\x63\x61\164\157\x72\x25\x32\x24\x73\x20\141\160\x70\56", "\155\x69\x6e\x69\x6f\x72\141\156\x67\x65\x2d\62\x2d\x66\141\143\164\157\x72\55\141\x75\x74\150\145\156\x74\x69\143\x61\x74\x69\157\156"), "\x3c\x62\76", "\74\57\x62\x3e");
$o4 = "\115\117\x5f\x32\x5f\x46\x41\103\x54\117\x52\x5f\x43\x48\x41\114\x4c\x45\x4e\x47\x45\137\x53\x4f\x46\124\x5f\x54\117\x4b\x45\x4e";
MO2f_Utility::mo2f_debug_file("\x52\x65\161\165\x65\x73\x74\40\x66\162\x6f\x6d\40\155\157\x62\151\154\x65\x20\144\x65\x76\x69\143\145\40\x73\157\40\160\x72\x6f\x6d\x74\151\x6e\147\40\x73\157\x66\164\x20\x74\157\x6b\145\156" . "\x20\125\163\145\162\x5f\x49\x50\55" . $ce->get_client_ip() . "\x20\x55\163\x65\x72\x5f\x49\x64\x2d" . $user->ID . "\x20\x45\155\x61\151\x6c\55" . $user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
FLO:
}
function mo2f_pass2login_push_oobemail_verification($current_user, $uV, $kO, $d0 = null)
{
global $aq, $ce;
if (!is_null($d0)) {
goto yia;
}
$d0 = $this->create_session();
yia:
$kx = new Customer_Setup();
if (!($uV == "\117\x55\x54\40\117\106\x20\x42\101\x4e\104\40\x45\x4d\x41\111\114" || $uV == "\105\x6d\141\x69\154\40\126\x65\162\151\146\x69\x63\x61\x74\x69\x6f\x6e")) {
goto bhq;
}
$GH = get_user_meta($current_user->ID, "\164\145\x6d\x70\122\x65\x67\105\x6d\x61\x69\x6c", true);
bhq:
if (!empty($GH)) {
goto y6A;
}
$GH = $aq->get_user_detail("\155\x6f\x32\146\x5f\165\163\x65\162\137\145\155\141\151\154", $current_user->ID);
y6A:
if (MO2F_IS_ONPREM && $uV != "\120\125\x53\x48\x20\x4e\x4f\124\111\106\111\103\101\x54\111\x4f\116\123") {
goto HjN;
}
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\x32\146\137\143\x75\x73\x74\157\155\x65\162\113\x65\171");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\62\146\137\x61\x70\x69\x5f\x6b\145\171");
$CG = $kx->send_otp_token($GH, $uV, $Tp, $Lv);
goto lx5;
HjN:
include_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . "\x61\160\151" . DIRECTORY_SEPARATOR . "\x4d\157\62\x66\137\x4f\x6e\120\x72\x65\155\x52\x65\x64\151\x72\145\x63\x74\56\160\x68\x70";
$pG = new Mo2f_OnPremRedirect();
$CG = $pG->mo2f_pass2login_push_email_onpremise($current_user, $kO, $d0);
lx5:
$C7 = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto d3_;
}
MO2f_Utility::mo2f_debug_file("\101\x6e\x20\145\162\x72\x6f\x72\x20\157\143\x63\x75\162\x65\144\40\167\x68\151\x6c\x65\x20\160\162\x6f\143\x65\163\x73\151\156\x67\x20\x79\x6f\x75\162\40\x72\145\x71\x75\x65\163\x74\x2e" . "\125\x73\145\162\137\111\120\x2d" . $ce->get_client_ip() . "\40\125\x73\x65\x72\137\111\x64\55" . $current_user->ID . "\40\105\x6d\141\151\154\x2d" . $current_user->user_email);
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("\x65\155\x70\x74\171\137\x75\x73\x65\x72\156\141\155\x65", __("\74\163\164\x72\x6f\x6e\x67\x3e\x45\x52\x52\x4f\122\x3c\57\x73\164\x72\x6f\x6e\147\x3e\x3a\40\x41\x6e\40\x65\x72\162\157\162\40\157\143\x63\x75\162\145\144\40\167\150\151\154\x65\x20\x70\x72\x6f\143\x65\163\163\x69\x6e\x67\40\171\157\x75\x72\x20\162\145\161\165\x65\163\x74\x2e\x20\120\x6c\x65\141\163\x65\40\x54\x72\x79\x20\141\x67\x61\x69\x6e\56"));
return $wX;
goto mXr;
d3_:
if ($C7["\x73\x74\x61\x74\165\x73"] == "\x53\x55\103\x43\105\x53\x53") {
goto aYw;
}
if ($C7["\x73\x74\141\164\x75\x73"] == "\x45\122\x52\x4f\x52" || $C7["\163\164\x61\164\165\x73"] == "\x46\101\111\114\x45\104") {
goto TBg;
}
goto pwl;
aYw:
MO2f_Utility::mo2f_set_transient($d0, "\155\x6f\62\x66\x5f\x74\x72\x61\156\163\x61\143\164\151\157\156\x49\144", $C7["\164\x78\111\144"]);
$this->mo2f_transactionid = $C7["\164\x78\111\144"];
MO2f_Utility::mo2f_debug_file("\120\165\163\150\x20\x6e\x6f\x74\x69\x66\151\x63\x61\164\151\x6f\156\40\150\141\x73\x20\163\145\156\x74\40\163\x75\x63\x63\145\163\x73\x66\165\x6c\154\171\40\146\x6f\x72\x20" . $uV . "\x20\125\x73\x65\x72\x5f\x49\120\55" . $ce->get_client_ip() . "\40\x55\x73\x65\162\137\x49\144\55" . $current_user->ID . "\40\x45\x6d\141\151\x6c\x2d" . $current_user->user_email);
$oR = $uV == "\x50\125\x53\110\40\x4e\117\124\111\106\x49\103\101\x54\111\117\x4e\123" ? __("\x41\x20\x50\x75\x73\150\40\116\x6f\x74\x69\x66\151\143\141\x74\x69\x6f\x6e\40\150\x61\x73\40\x62\x65\x65\x6e\x20\x73\x65\156\164\40\x74\157\40\171\157\x75\x72\x20\160\150\157\x6e\145\56\x20\x57\145\40\141\x72\145\x20\167\x61\x69\x74\151\156\147\40\146\157\x72\x20\x79\157\x75\x72\40\141\x70\160\x72\x6f\x76\x61\x6c\x2e", "\x6d\x69\x6e\x69\157\162\141\x6e\x67\x65\x2d\62\x2d\146\141\143\164\x6f\162\55\x61\165\x74\x68\x65\156\164\x69\143\141\x74\x69\x6f\156") : __("\x41\x6e\40\x65\x6d\x61\151\x6c\40\150\x61\163\40\x62\x65\145\x6e\x20\x73\145\x6e\x74\x20\164\157\40", "\155\151\x6e\151\x6f\x72\141\156\x67\145\x2d\62\x2d\146\x61\143\164\157\x72\x2d\141\x75\x74\150\x65\156\164\x69\x63\x61\164\x69\x6f\x6e") . MO2f_Utility::mo2f_get_hidden_email($GH) . __("\56\40\127\145\40\141\x72\x65\40\167\x61\x69\x74\x69\156\147\40\146\157\162\40\x79\157\x75\162\40\x61\160\x70\162\x6f\x76\141\154\56", "\x6d\x69\x6e\151\x6f\162\141\x6e\x67\145\55\62\x2d\146\x61\143\x74\157\x72\x2d\x61\165\164\x68\145\x6e\164\151\143\141\x74\x69\x6f\x6e");
$o4 = $uV == "\120\x55\123\x48\40\116\x4f\124\x49\x46\x49\x43\x41\124\x49\x4f\116\x53" ? "\115\117\137\x32\137\x46\x41\x43\124\117\122\x5f\103\x48\101\114\114\105\x4e\x47\105\x5f\120\x55\123\110\137\x4e\117\124\x49\106\x49\103\x41\124\111\x4f\116\x53" : "\x4d\117\x5f\x32\x5f\x46\x41\103\124\117\x52\x5f\x43\110\101\x4c\114\x45\116\x47\105\x5f\x4f\117\x42\137\x45\x4d\x41\x49\x4c";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto pwl;
TBg:
MO2f_Utility::mo2f_set_transient($d0, "\155\x6f\62\x66\x5f\x74\x72\x61\x6e\x73\141\143\x74\151\x6f\156\111\144", $C7["\x74\x78\111\x64"]);
$this->mo2f_transactionid = $C7["\164\170\x49\x64"];
MO2f_Utility::mo2f_debug_file("\101\x6e\40\x65\x72\162\x6f\162\x20\157\143\143\165\x72\x65\x64\40\x77\150\151\154\145\x20\163\145\x6e\x64\151\156\x67\40\160\x75\x73\150\40\156\157\164\151\x66\151\x63\x61\164\x69\157\156\x2d" . $uV . "\40\125\163\145\x72\137\x49\120\55" . $ce->get_client_ip() . "\40\125\x73\x65\x72\137\111\x64\x2d" . $current_user->ID . "\x20\x45\x6d\x61\x69\x6c\x2d" . $current_user->user_email);
$oR = $uV == "\120\x55\x53\110\40\x4e\x4f\x54\x49\106\111\103\101\x54\x49\x4f\x4e\x53" ? sprintf(__("\x41\156\40\145\162\x72\157\x72\40\x6f\143\x63\165\162\x65\144\40\x77\150\x69\x6c\145\40\163\x65\x6e\144\151\x6e\147\40\x70\x75\163\x68\x20\156\x6f\x74\x69\146\x69\x63\141\x74\151\157\156\40\x74\157\x20\x79\x6f\165\162\40\141\160\160\56\40\x59\157\165\x20\x63\x61\x6e\40\143\154\x69\143\x6b\x20\157\156\40\x25\x31\x24\163\120\150\x6f\156\x65\40\151\163\x20\x4f\x66\146\154\151\x6e\145\x25\62\x24\x73\x20\142\165\164\x74\157\156\40\164\x6f\40\x65\x6e\x74\x65\162\x20\163\157\146\164\40\164\157\153\x65\x6e\40\146\x72\157\155\40\x61\x70\x70\x20\157\x72\40\45\63\x24\x73\x46\157\x72\x67\157\164\40\171\157\x75\x72\40\x70\x68\157\x6e\145\45\64\x24\163\x20\x62\x75\164\x74\157\x6e\40\x74\x6f\40\162\145\143\145\151\166\145\x20\x4f\x54\x50\x20\164\157\x20\171\157\x75\x72\x20\162\145\147\x69\163\164\x65\162\x65\144\x20\x65\155\x61\151\154\56", "\x6d\151\156\x69\x6f\162\141\x6e\147\145\55\x32\55\146\141\143\164\157\162\55\141\x75\164\150\x65\156\x74\x69\143\141\164\x69\x6f\x6e"), "\x3c\142\x3e", "\74\57\142\x3e", "\x3c\x62\76", "\74\57\x62\x3e") : __("\101\156\40\145\x72\x72\157\x72\40\x6f\x63\x63\x75\162\x65\144\40\167\150\151\x6c\x65\x20\163\x65\156\x64\x69\x6e\147\40\x65\155\141\151\x6c\56\40\120\154\145\x61\163\x65\x20\x74\x72\x79\x20\x61\147\141\151\x6e\56", "\x6d\151\156\151\157\x72\141\x6e\147\145\55\x32\55\x66\141\x63\x74\x6f\x72\55\141\x75\164\150\x65\156\x74\151\x63\x61\x74\x69\157\x6e");
$o4 = $uV == "\x50\125\123\x48\x20\x4e\117\124\x49\x46\111\x43\x41\124\111\117\116\x53" ? "\x4d\117\x5f\x32\x5f\106\101\x43\124\x4f\122\137\x43\110\x41\x4c\114\105\x4e\107\x45\x5f\x50\125\x53\110\x5f\116\x4f\x54\x49\x46\111\x43\x41\x54\111\117\116\x53" : "\x4d\x4f\x5f\x32\x5f\x46\101\x43\124\117\122\137\103\110\x41\x4c\x4c\x45\x4e\x47\x45\137\x4f\x4f\102\137\x45\x4d\101\111\114";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
pwl:
mXr:
}
function mo2f_pass2login_otp_verification($user, $uV, $kO, $d0 = null)
{
MO2f_Utility::mo2f_debug_file("\x69\156\40\155\x6f\x32\146\x5f\x70\x61\163\163\62\x6c\x6f\147\x69\156\137\x6f\x74\160\x5f\x76\145\162\151\146\151\x63\x61\164\151\157\x6e");
global $aq, $ce;
if (!is_null($d0)) {
goto lV0;
}
$d0 = $this->create_session();
lV0:
$y7 = get_user_meta($user->ID, "\x6d\x6f\x32\x66\x5f\145\x78\164\145\162\x6e\141\x6c\137\141\160\160\137\164\x79\160\x65", true);
if (!($uV == "\x45\115\101\111\x4c")) {
goto eGc;
}
$ac = get_site_option("\x6d\x6f\x32\146\x5f\x65\x6d\x61\x69\154\x5f\155\x65\164\141\x5f\153\145\x79") && !empty(get_user_meta($user->ID, get_site_option("\x6d\157\62\146\137\145\155\x61\151\x6c\x5f\155\x65\164\x61\x5f\153\x65\x79"), true)) ? get_user_meta($user->ID, get_site_option("\x6d\157\x32\146\137\145\x6d\141\151\154\137\x6d\x65\x74\x61\x5f\x6b\x65\171"), true) : $aq->get_user_detail("\155\157\x32\146\x5f\165\x73\x65\x72\x5f\x65\x6d\141\x69\154", $user->ID);
$To = get_site_option(base64_encode("\x72\x65\x6d\141\x69\156\x69\156\147\117\x54\x50"));
if (!($To > get_site_option("\x45\x6d\x61\151\154\124\162\141\x6e\163\141\143\x74\151\157\x6e\x43\165\162\162\x65\156\164") or get_site_option(base64_encode("\154\x69\155\151\x74\x52\x65\x61\x63\150\x65\x64")))) {
goto wYM;
}
update_site_option(base64_encode("\x72\x65\155\141\151\x6e\x69\x6e\x67\117\x54\120"), 0);
wYM:
eGc:
if (!("\x53\115\x53" === $uV || "\x4f\x54\120\40\x4f\x76\145\x72\40\x53\x4d\123" === $uV)) {
goto X54;
}
$ac = get_site_option("\x6d\x6f\62\x66\137\160\x68\x6f\156\145\137\x6d\145\164\x61\x5f\x6b\145\x79") && !empty(get_user_meta($user->ID, get_site_option("\155\157\x32\x66\x5f\x70\150\x6f\156\x65\x5f\155\145\164\141\x5f\153\145\171"), true)) ? get_user_meta($user->ID, get_site_option("\155\x6f\x32\146\x5f\160\x68\x6f\x6e\x65\137\x6d\145\164\141\137\153\x65\x79"), true) : $aq->get_user_detail("\x6d\x6f\x32\x66\x5f\x75\x73\145\162\137\160\150\x6f\156\145", $user->ID);
X54:
if ($uV == "\123\117\106\124\40\x54\x4f\113\105\x4e") {
goto R4j;
}
if ($uV == "\107\117\x4f\107\114\105\40\x41\x55\x54\x48\105\x4e\124\111\x43\x41\124\117\x52") {
goto WUS;
}
if ($uV == "\117\124\120\40\117\x76\145\x72\x20\x54\x65\x6c\145\x67\x72\141\x6d") {
goto DL7;
}
$kx = new Customer_Setup();
$CG = '';
$C7 = array();
$ny = 0;
if (!($uV == "\117\x54\x50\x20\117\x76\x65\x72\x20\123\x4d\x53")) {
goto TMn;
}
$uV = "\x53\115\x53";
TMn:
if ($uV == "\105\115\x41\111\x4c") {
goto sxL;
}
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\62\x66\137\x63\x75\163\x74\157\x6d\x65\162\x4b\x65\171");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\62\146\137\x61\x70\151\x5f\153\145\x79");
$CG = $kx->send_otp_token($ac, $uV, $Tp, $Lv, $user);
$ac = !isset($C7["\160\150\157\156\145\104\145\x6c\x69\x76\145\x72\x79"]["\143\157\156\x74\141\x63\164"]) ? $ac : $C7["\160\150\157\x6e\x65\104\145\154\x69\x76\x65\162\171"]["\143\x6f\156\164\141\143\x74"];
$H7 = MO2f_Utility::get_hidden_phone($ac);
goto M4F;
sxL:
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\62\146\137\x63\x75\x73\164\157\155\x65\162\113\145\171");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\62\x66\137\141\x70\151\137\153\x65\x79");
$CG = $kx->send_otp_token($ac, "\x4f\124\x50\40\x4f\166\145\162\x20\105\155\141\151\x6c", $Tp, $Lv, $user);
$H7 = MO2f_Utility::mo2f_get_hidden_email($ac);
M4F:
$C7 = json_decode($CG, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto ODz;
}
$this->remove_current_activity($d0);
$wX = new WP_Error();
$wX->add("\145\x6d\160\164\x79\x5f\x75\x73\145\x72\156\x61\155\x65", __("\74\163\x74\162\157\156\x67\76\x45\122\x52\x4f\122\74\57\163\164\162\157\156\147\76\x3a\40\x41\x6e\x20\145\162\x72\157\162\x20\157\x63\x63\x75\162\x65\144\x20\x77\150\151\154\x65\x20\160\162\x6f\143\x65\163\163\151\x6e\147\x20\x79\x6f\165\162\x20\162\145\161\x75\x65\163\x74\x2e\x20\120\x6c\x65\141\x73\x65\x20\124\162\x79\40\x61\147\141\x69\156\x2e"));
return $wX;
goto elV;
ODz:
if ($C7["\x73\x74\x61\164\165\x73"] == "\x53\125\103\x43\105\123\123") {
goto HUA;
}
if (!($C7["\155\145\163\x73\x61\147\145"] == "\x54\x45\123\x54\40\x46\x41\x49\114\x45\x44\x2e")) {
goto y2i;
}
$C7["\x6d\x65\163\x73\x61\147\145"] = "\x54\150\x65\x72\x65\x20\151\x73\x20\141\x6e\x20\x65\162\162\x6f\162\x20\151\156\40\x73\x65\x6e\x64\151\x6e\147\x20\x74\150\x65\40\x4f\x54\120\56";
y2i:
$hd = "\x20\74\141\x20\x68\x72\x65\x66\75\x22" . MoWpnsConstants::VIEW_TRANSACTIONS . "\42\76\x20\143\x68\145\x63\153\40\171\157\x75\x72\40\162\x65\155\141\x69\x6e\151\156\x67\40\x74\162\x61\156\x73\141\143\164\151\157\156\163\x20\74\57\x61\76";
if ($ny == 1) {
goto Uhi;
}
if (MO2F_IS_ONPREM and ($uV == "\117\x54\120\x20\x4f\166\145\162\x20\105\155\141\151\x6c" or $uV == "\105\115\x41\111\114" or $uV == "\105\155\141\x69\x6c\x20\x56\x65\162\151\146\x69\143\x61\x74\151\157\x6e")) {
goto Rgg;
}
if (!in_array("\141\x64\155\151\156\x69\x73\x74\x72\x61\164\157\x72", $user->roles)) {
goto JLc;
}
$hd = $hd . "\40\157\162\x20\x3c\x61\40\150\x72\145\x66\x3d\x22" . MoWpnsConstants::rechargeLink . "\42\x3e\x61\x64\x64\x20\x53\x4d\x53\40\x74\162\x61\x6e\x73\x61\143\x74\151\157\x6e\x73\74\57\141\76\x20\164\x6f\40\x79\157\x75\x72\40\x61\x63\143\157\x75\x6e\x74\x2e";
JLc:
goto Dy7;
Uhi:
$hd = "\157\x72\x20\143\157\156\164\x61\x63\x74\x20\155\151\x6e\x69\x4f\x72\141\156\147\x65";
goto Dy7;
Rgg:
$hd = "\117\162\40\x63\150\145\143\x6b\40\171\157\165\x72\40\123\x4d\x54\x50\40\x53\x65\x72\x76\x65\x72\40\141\156\x64\x20\162\145\155\x61\x69\156\151\x6e\147\40\x74\162\x61\156\x73\x61\143\x74\151\x6f\156\x73\56";
Dy7:
if (in_array("\141\x64\x6d\151\x6e\151\163\x74\x72\141\x74\157\162", $user->roles)) {
goto IlJ;
}
$F3 = $C7["\x6d\x65\163\x73\x61\147\145"] . "\x20\x50\154\145\x61\163\x65\40\x63\x6f\156\164\x61\143\x74\x20\x79\x6f\x75\162\40\141\144\155\x69\156\x69\163\x74\x72\x61\x74\157\x72\56";
goto f2W;
IlJ:
$F3 = $C7["\155\145\163\163\141\147\145"] . "\x20\131\x6f\165\x20\x63\x61\156\40" . $hd;
f2W:
if (isset($C7["\x74\170\111\x64"])) {
goto c9Q;
}
$C7["\x74\170\x49\x64"] = '';
c9Q:
MO2f_Utility::mo2f_set_transient($d0, "\155\157\62\x66\137\164\162\141\x6e\x73\x61\143\x74\151\x6f\x6e\111\x64", $C7["\x74\170\x49\144"]);
$this->mo2f_transactionid = $C7["\x74\170\x49\x64"];
$oR = $F3;
$o4 = "\x4d\117\x5f\x32\137\x46\x41\x43\x54\x4f\122\x5f\103\x48\x41\x4c\114\x45\x4e\x47\x45\137\x4f\124\120\x5f\x4f\x56\105\122\137\x53\x4d\123";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto KWs;
HUA:
$ac = !empty($C7["\160\x68\157\156\145\104\145\154\151\x76\x65\x72\171"]["\x63\157\x6e\x74\x61\x63\x74"]) ? MO2f_Utility::get_hidden_phone($C7["\160\150\x6f\x6e\x65\104\145\154\x69\166\145\x72\x79"]["\x63\x6f\156\x74\141\x63\x74"]) : (!empty($C7["\145\x6d\x61\x69\154"]) ? MO2f_Utility::mo2f_get_hidden_email($C7["\145\155\x61\x69\154"]) : "\x78\170\170\x78\x78\170");
$F3 = __("\101\x20\x6f\156\x65\40\164\151\x6d\x65\40\160\x61\163\x73\143\157\x64\145\x20\150\141\163\x20\x62\145\x65\x6e\x20\163\145\156\x74\x20\x74\157\x20", "\x6d\151\x6e\x69\x6f\x72\x61\156\x67\145\55\x32\x2d\146\x61\x63\x74\x6f\162\x2d\141\x75\164\x68\145\x6e\164\151\143\141\164\151\x6f\156") . $ac . __("\x2e\40\120\154\x65\x61\x73\145\40\x65\x6e\x74\x65\162\40\x74\150\145\40\x4f\x54\120\x20\164\157\40\x76\x65\162\151\146\x79\x20\171\157\165\162\40\x69\144\145\x6e\164\151\x74\x79\56", "\x6d\151\x6e\151\x6f\x72\x61\156\x67\x65\55\x32\x2d\x66\x61\143\x74\x6f\162\x2d\141\x75\x74\150\x65\x6e\x74\x69\x63\x61\x74\151\157\x6e");
update_site_option("\x6d\x6f\62\146\137\x6e\165\155\142\145\x72\x5f\x6f\146\x5f\164\x72\141\156\163\141\143\164\x69\x6f\156\163", MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\x6f\x32\x66\137\x6e\x75\x6d\142\x65\x72\x5f\157\x66\x5f\x74\x72\x61\156\x73\x61\x63\x74\x69\157\156\x73", "\147\145\x74\137\157\160\x74\x69\x6f\156") - 1);
MO2f_Utility::mo2f_set_transient($d0, "\155\x6f\62\x66\137\164\x72\141\156\x73\141\143\x74\x69\157\x6e\111\144", $C7["\164\170\111\x64"]);
$this->mo2f_transactionid = $C7["\x74\170\111\144"];
$oR = $F3;
if ("\x4f\124\x50\40\x4f\x76\x65\162\x20\105\x6d\x61\x69\154" === $uV || "\x4f\124\120\40\117\x56\x45\122\40\105\x4d\x41\x49\x4c" === $uV || "\105\115\x41\x49\114" === $uV) {
goto Ud8;
}
$o4 = "\115\117\137\62\137\x46\x41\103\124\117\122\137\x43\x48\x41\x4c\x4c\105\x4e\x47\105\137\117\124\120\x5f\x4f\126\105\x52\x5f\123\115\x53";
goto Iky;
Ud8:
$o4 = "\x4d\x4f\x5f\62\x5f\x46\x41\x43\x54\117\122\x5f\x43\x48\x41\x4c\x4c\105\116\107\105\x5f\117\x54\120\x5f\x4f\126\105\x52\x5f\x45\115\101\x49\x4c";
Iky:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
KWs:
elV:
goto mGL;
R4j:
$oR = sprintf(__("\x50\x6c\145\141\x73\x65\x20\145\x6e\x74\145\x72\40\x74\x68\x65\x20\157\x6e\145\x20\x74\x69\155\145\x20\x70\141\x73\x73\143\x6f\144\x65\40\x73\150\x6f\x77\x6e\40\151\x6e\x20\164\x68\x65\x20\155\x69\156\151\117\162\x61\x6e\x67\145\x25\61\44\x73\x20\101\x75\164\150\x65\156\164\x69\x63\141\164\157\162\45\62\44\x73\40\x61\x70\160\56", "\x6d\x69\x6e\x69\157\x72\x61\x6e\x67\x65\x2d\62\x2d\x66\141\x63\164\x6f\162\x2d\141\x75\164\x68\145\156\164\x69\143\x61\x74\x69\157\156"), "\x3c\142\x3e", "\74\x2f\x62\x3e");
$o4 = "\115\x4f\x5f\x32\137\x46\101\103\x54\x4f\x52\137\x43\110\x41\x4c\x4c\x45\x4e\107\105\137\123\x4f\106\124\137\x54\117\x4b\x45\x4e";
MO2f_Utility::mo2f_debug_file($o4 . "\x20\x55\163\x65\x72\137\x49\x50\x2d" . $ce->get_client_ip() . "\x20\125\163\145\162\137\111\144\55" . $user->ID . "\40\x45\x6d\x61\x69\x6c\x2d" . $user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto mGL;
WUS:
if (get_user_meta($user->ID, "\x6d\x6f\62\146\x5f\x72\145\x63\x6f\156\x66\151\147\165\x72\x61\164\x69\x6f\x6e\137\x6f\x6e\137\145\155\141\151\154", true) == true) {
goto fwj;
}
$oR = sprintf(__("\x50\154\x65\141\163\x65\40\x65\x6e\x74\x65\162\x20\164\150\x65\x20\x6f\x6e\x65\x20\x74\151\x6d\x65\x20\160\141\163\163\x63\x6f\144\x65\40\x73\150\x6f\167\x6e\40\x69\156\x20\x74\x68\145\x20\x25\61\x24\163\x41\x75\x74\x68\145\x6e\164\151\143\x61\x74\157\x72\x25\x32\44\163\40\x61\x70\160\x2e", "\155\x69\x6e\151\x6f\x72\141\156\147\x65\55\62\x2d\146\141\143\164\157\x72\55\141\165\x74\150\145\x6e\164\x69\143\x61\164\x69\x6f\x6e"), "\x3c\x62\76", "\x3c\57\x62\76");
$o4 = "\x4d\x4f\x5f\x32\137\x46\101\x43\124\117\x52\x5f\x43\110\x41\114\114\105\116\x47\x45\137\107\x4f\x4f\x47\x4c\x45\137\x41\x55\x54\110\x45\x4e\x54\x49\x43\101\124\111\x4f\x4e";
goto uqX;
fwj:
$o4 = "\x4d\x4f\137\62\x5f\x46\101\103\124\117\122\x5f\x50\x52\x4f\x4d\x50\x54\137\125\123\x45\x52\x5f\x46\x4f\122\x5f\x32\106\x41\137\115\x45\x54\110\x4f\104\123";
$oR = '';
uqX:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
goto mGL;
DL7:
$oc = get_user_meta($user->ID, "\x6d\157\x32\146\x5f\x63\x68\141\x74\x5f\x69\x64", true);
$Je = '';
$ku = 1;
ogh:
if (!($ku < 7)) {
goto j7E;
}
$Je .= rand(0, 9);
l3s:
$ku++;
goto ogh;
j7E:
update_user_meta($user->ID, "\x6d\157\62\146\x5f\157\164\x70\137\x74\x6f\x6b\x65\x6e", $Je);
update_user_meta($user->ID, "\x6d\157\x32\x66\x5f\164\145\154\x65\x67\x72\141\155\137\164\151\x6d\x65", time());
$jB = esc_url(MoWpnsConstants::TELEGRAM_OTP_LINK);
$VV = array("\155\157\x32\146\137\157\x74\160\137\x74\x6f\153\145\x6e" => $Je, "\155\157\x32\x66\137\143\150\141\x74\x69\x64" => $oc);
$jM = curl_init();
curl_setopt_array($jM, array(CURLOPT_URL => $jB, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $VV, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false));
$b1 = curl_exec($jM);
curl_close($jM);
if (!($b1 == "\123\x55\103\x43\x45\x53\123")) {
goto h3j;
}
$oR = sprintf(__("\120\154\145\x61\163\145\x20\x65\156\164\145\162\40\x74\150\x65\x20\x6f\x6e\145\40\164\x69\155\x65\x20\160\x61\x73\x73\x63\x6f\x64\x65\x20\x73\150\x6f\x77\156\x20\163\x65\156\164\x20\x74\x6f\40\x79\x6f\x75\162\x20\45\61\x24\x73\x54\x65\x6c\145\147\162\x61\x6d\45\62\x24\x73\x20\x61\160\160\x2e", "\x6d\x69\x6e\151\x6f\162\x61\x6e\147\x65\x2d\62\55\146\141\x63\x74\157\162\x2d\141\165\x74\x68\145\x6e\x74\151\x63\x61\164\x69\x6f\x6e"), "\x3c\x62\x3e", "\x3c\x2f\x62\x3e");
$o4 = "\115\x4f\x5f\x32\137\x46\101\103\124\117\122\137\103\110\101\x4c\x4c\x45\x4e\107\105\x5f\117\x54\120\x5f\117\126\x45\122\x5f\124\x45\114\105\x47\x52\x41\115";
MO2f_Utility::mo2f_debug_file($o4 . "\40\x55\x73\145\162\137\111\120\x2d" . $ce->get_client_ip() . "\40\x55\x73\x65\162\x5f\111\x64\x2d" . $user->ID . "\40\105\155\141\x69\154\55" . $user->user_email);
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
h3j:
mGL:
}
function mo2fa_pass2login($kO = null, $QH = null)
{
global $aq;
if (empty($this->mo2f_userID) && empty($this->fstfactor)) {
goto cyf;
}
$bR = $this->mo2f_userID;
$og = $this->fstfactor;
goto YXA;
cyf:
$bR = MO2f_Utility::mo2f_get_transient($QH, "\155\157\x32\146\137\143\x75\x72\x72\145\x6e\164\x5f\x75\163\x65\x72\137\151\144");
$og = MO2f_Utility::mo2f_get_transient($QH, "\x6d\x6f\x32\x66\137\x31\163\164\x66\141\x63\x74\x6f\162\137\x73\x74\x61\x74\x75\163");
YXA:
if ($bR && $og && $og == "\126\x41\114\111\x44\101\x54\x45\x5f\x53\x55\x43\103\105\123\123") {
goto RTg;
}
$this->remove_current_activity($QH);
goto L3e;
RTg:
$OZ = get_user_by("\151\x64", $bR);
wp_set_current_user($bR, $OZ->user_login);
$GR = new Miniorange_Mobile_Login();
$GR->remove_current_activity($QH);
wp_set_auth_cookie($bR, true);
do_action("\167\160\x5f\x6c\x6f\x67\151\156", $OZ->user_login, $OZ);
redirect_user_to($OZ, $kO);
exit;
L3e:
}
function create_session()
{
global $aq;
$d0 = MO2f_Utility::random_str(20);
$aq->insert_user_login_session($d0);
$Yt = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\x32\x66\x5f\145\156\143\162\171\160\164\151\x6f\x6e\x5f\x6b\145\171");
$dj = MO2f_Utility::encrypt_data($d0, $Yt);
return $dj;
}
function miniorange_initiate_2nd_factor($OZ, $aV = null, $kO = null, $wp = '', $dj = null, $Hl = false)
{
global $aq, $ce;
MO2f_Utility::mo2f_debug_file("\115\x4f\x20\151\x6e\x69\164\x69\x61\x74\x65\x20\x32\x6e\144\x20\x66\141\x63\x74\x6f\x72\x20" . "\x55\163\145\x72\x5f\111\x50\x2d" . $ce->get_client_ip() . "\40\x55\163\x65\x72\137\x49\144\55" . $OZ->ID . "\x20\105\x6d\141\x69\154\55" . $OZ->user_email);
$this->miniorange_pass2login_start_session();
if (!is_null($dj)) {
goto KU4;
}
$dj = $this->create_session();
KU4:
$_SESSION["\x6d\x6f\x32\x66\x5f\x63\165\x72\x72\145\x6e\x74\137\x75\163\x65\162"] = serialize($OZ);
$_SESSION["\155\157\62\146\137\61\163\x74\x66\141\x63\x74\157\x72\137\x73\164\141\x74\x75\163"] = "\x56\101\x4c\111\104\101\x54\x45\x5f\123\125\x43\103\x45\123\x53";
if (!class_exists("\125\x4d\137\x46\x75\x6e\143\x74\151\157\156\163")) {
goto YcC;
}
MO2f_Utility::mo2f_debug_file("\125\x73\x69\156\147\40\x55\115\x20\x6c\x6f\x67\x69\x6e\40\146\157\x72\x6d\56");
if (!(!isset($_POST["\167\x70\x2d\x73\x75\142\x6d\151\164"]) and isset($_POST["\x75\x6d\x5f\162\145\161\x75\145\163\x74"]))) {
goto yyv;
}
$wH = get_site_option("\x75\x6d\137\162\157\154\145\x5f" . $OZ->roles[0] . "\137\x6d\145\164\141");
if (!(isset($wH) and $wH != '')) {
goto HFV;
}
if (!isset($wH["\137\x75\x6d\137\x6c\x6f\147\151\156\137\162\145\x64\x69\x72\145\143\x74\x5f\x75\x72\154"])) {
goto SCC;
}
$kO = $wH["\x5f\x75\155\x5f\x6c\157\147\151\x6e\137\162\x65\x64\x69\162\x65\x63\x74\x5f\165\162\154"];
SCC:
if (!($kO == '')) {
goto CH0;
}
$kO = get_site_url();
CH0:
HFV:
$A_ = '';
if (!isset($_POST["\162\x65\144\151\162\x65\x63\164\137\x74\x6f"])) {
goto YNR;
}
$A_ = esc_url_raw($_POST["\162\x65\144\151\x72\145\x63\164\x5f\164\157"]);
YNR:
if (!($A_ != '' and !is_null($A_))) {
goto Rp2;
}
$kO = $A_;
Rp2:
yyv:
YcC:
MO2f_Utility::mo2f_set_transient($dj, "\x6d\157\x32\146\x5f\143\x75\162\162\x65\156\164\x5f\165\163\145\162\137\x69\144", $OZ->ID, 600);
MO2f_Utility::mo2f_set_transient($dj, "\x6d\157\x32\x66\137\61\163\164\146\x61\143\x74\x6f\x72\137\163\164\141\164\x75\163", "\x56\101\x4c\x49\104\101\124\x45\x5f\x53\125\x43\x43\x45\123\x53", 600);
$this->mo2f_userID = $OZ->ID;
$this->fstfactor = "\x56\101\114\x49\x44\101\x54\105\137\x53\x55\103\103\105\x53\x53";
$QO = true;
$v6 = get_site_option("\144\x47\71\60\131\127\x78\x56\x63\62\126\x79\143\x30\116\163\142\x33\126\153");
if (!($v6 < 3)) {
goto O8b;
}
$QO = true;
O8b:
$tB = miniorange_get_user_role($OZ);
$h_ = miniorange_check_if_2fa_enabled_for_roles($tB);
if (MoWpnsUtility::get_mo2f_db_option("\x6d\157\x32\x66\137\x62\x79\137\x72\157\154\145\x73", "\x73\x69\x74\145\137\x6f\x70\x74\151\x6f\x6e")) {
goto gUR;
}
$DI = MoWpnsUtility::get_mo2f_db_option("\x6d\157\62\x66\137\162\145\x6d\157\166\145\x5f\165\x73\x65\x72\137\x66\x6f\x72\x5f\x32\x66\x61", "\x73\x69\164\145\x5f\x6f\160\x74\151\157\156");
$Ae = in_array($OZ->ID, $DI);
goto OqZ;
gUR:
$h_ = miniorange_check_if_2fa_enabled_for_roles($tB);
if (!is_network_admin($OZ->ID)) {
goto w06;
}
if (get_site_option("\x6d\157\62\146\141\x5f\x73\165\x70\145\162\x61\144\155\151\156") == 1) {
goto B_Z;
}
$h_ = 0;
goto qaf;
B_Z:
$h_ = 1;
qaf:
w06:
OqZ:
$TA = (array) $OZ->roles;
$DQ = 0;
$Ct = 0;
$IC = $aq->get_user_detail("\x6d\157\62\x66\137\62\146\141\x63\x74\157\162\137\145\156\x61\x62\154\x65\x5f\x32\x66\x61\137\x62\171\165\x73\145\162\163", $OZ->ID);
if (!($IC !== "\60")) {
goto RAd;
}
foreach ($TA as $S5) {
if (!(get_site_option("\155\157\x32\146\x61\137" . $S5) == "\x31")) {
goto KkQ;
}
$Ct = 1;
KkQ:
pdR:
}
C5E:
if (!is_network_admin($OZ->ID)) {
goto PxU;
}
if (get_site_option("\155\157\x32\146\141\x5f\x73\165\160\x65\162\x61\144\155\x69\x6e") == 1) {
goto QdW;
}
$Ct = 0;
goto X60;
QdW:
$Ct = 1;
X60:
PxU:
RAd:
if (MoWpnsUtility::get_mo2f_db_option("\155\x6f\62\146\137\142\171\x5f\162\157\154\145\163", "\x73\x69\164\x65\137\x6f\x70\x74\x69\x6f\x6e") && $Ct && $h_) {
goto o0w;
}
if (!$Ae && !MoWpnsUtility::get_mo2f_db_option("\x6d\157\62\146\x5f\x62\171\137\162\157\154\x65\x73", "\163\151\x74\145\x5f\x6f\x70\164\x69\x6f\x6e")) {
goto PfQ;
}
goto BqC;
o0w:
$DQ = 1;
goto BqC;
PfQ:
$DQ = 1;
BqC:
MO2f_Utility::mo2f_debug_file("\x61\x72\x72\141\x79\50\x24\x66\154\x61\x67\54\44\x65\156\141\142\x6c\145\144\x2c\44\x69\x73\x5f\143\x75\163\x74\157\155\145\x72\x5f\x61\x64\155\x69\156\x2c\44\164\x77\x6f\146\x61\x63\x74\157\162\x5f\145\x6e\x61\x62\154\145\x64\x2c\x24\x72\x6f\154\x65\x73\51");
MO2f_Utility::mo2f_debug_file(print_r(array($Ct, $h_, $QO, $DQ, $TA), true));
if ($QO && $DQ) {
goto vhS;
}
if ($Hl) {
goto mhc;
}
$this->remove_current_activity();
$wX = new WP_Error("\145\x72\162\x6f\x72", __("\x54\x77\157\55\x66\x61\x63\164\157\162\x20\151\x73\40\156\157\164\40\145\x6e\141\x62\x6c\145\x64\40\x66\157\162\x20\x79\157\x75\x2e\40\x50\x6c\145\141\163\145\x20\154\x6f\147\151\x6e\40\x75\x73\151\x6e\x67\x20\165\x73\x65\162\156\141\x6d\x65\x20\x61\156\x64\x20\160\x61\163\x73\x77\x6f\x72\144\x2e", "\x6d\x69\156\151\x6f\162\141\156\x67\x65\x2d\62\55\146\141\143\x74\157\162\x2d\x61\x75\164\x68\145\156\164\x69\x63\141\x74\151\157\156"));
return $wX;
goto sZf;
mhc:
$this->mo2fa_pass2login($kO);
sZf:
goto CwR;
vhS:
$Vz = $aq->get_user_detail("\155\x6f\137\x32\146\141\x63\x74\157\x72\137\165\x73\145\x72\137\x72\x65\x67\151\163\x74\x72\141\164\x69\157\156\137\x73\164\x61\x74\x75\163", $OZ->ID);
$hQ = $aq->get_user_detail("\x6d\157\x32\x66\137\x53\145\143\x75\x72\x69\164\x79\x51\165\x65\x73\164\151\157\156\x73\x5f\x63\157\x6e\146\x69\147\x5f\x73\x74\141\164\x75\163", $OZ->ID);
MO2f_Utility::mo2f_debug_file("\x61\x72\162\141\171\x28\x24\146\x6c\141\x67\54\x24\x65\x6e\141\142\x6c\145\144\x2c\44\x69\x73\x5f\143\x75\163\164\157\x6d\x65\x72\137\141\x64\155\x69\156\54\44\x74\167\x6f\146\x61\x63\164\x6f\162\137\x65\156\141\x62\154\145\x64\x29");
MO2f_Utility::mo2f_debug_file(print_r(array($Ct, $h_, $QO, $DQ), true));
if (MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\157\62\x66\137\145\156\141\x62\x6c\x65\137\x62\162\165\x74\145\x5f\146\x6f\162\143\x65", "\x67\x65\164\137\x6f\x70\x74\x69\x6f\x6e")) {
goto TBl;
}
$d1 = "\144\x69\163\x61\x62\154\145\144";
goto jtv;
TBl:
$d1 = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\62\x66\x5f\141\154\154\x77\x65\144\137\x6c\157\147\151\x6e\137\141\x74\164\145\155\x70\x74\x73");
jtv:
update_user_meta($OZ->ID, "\155\x6f\x32\146\137\x75\x73\145\x72\x5f\154\157\147\151\x6e\137\x61\164\x74\145\x6d\160\164\163", $d1);
$tF = new Mo2fDB();
$TP = $tF->check_alluser_limit_exceeded($OZ->ID);
$Zl = $aq->get_user_detail("\x6d\x6f\62\146\137\62\146\x61\x63\164\x6f\162\137\x65\x6e\x61\x62\x6c\145\137\62\x66\x61\x5f\x62\171\x75\x73\145\162\x73", $OZ->ID);
MO2f_Utility::mo2f_debug_file("\x61\162\162\x61\x79\50\44\155\x6f\137\x32\x66\x61\x63\164\157\x72\x5f\x75\163\x65\x72\137\x72\145\x67\x69\x73\164\162\x61\164\x69\x6f\156\137\x73\164\141\x74\x75\x73\x2c\44\x74\x66\141\137\145\x6e\x61\142\x6c\145\144\x29");
MO2f_Utility::mo2f_debug_file(print_r(array($Vz, $Zl), true));
if (!($Zl == 0 && $Vz != "\x4d\117\x5f\62\137\x46\x41\103\x54\117\122\137\120\x4c\x55\x47\111\116\x5f\123\x45\x54\x54\111\116\x47\x53" && $Zl != '')) {
goto jz0;
}
$TP = 1;
jz0:
MO2f_Utility::mo2f_debug_file("\44\155\157\x5f\x32\x66\141\x63\164\x6f\162\137\165\x73\x65\162\137\x72\x65\x67\x69\x73\x74\162\x61\164\x69\157\x6e\x5f\x73\164\141\x74\x75\x73\x20\75\75\x20\47\x4d\117\x5f\62\137\x46\101\x43\124\117\122\x5f\120\114\125\107\x49\x4e\137\x53\105\124\124\x49\116\x47\123\x27");
MO2f_Utility::mo2f_debug_file(print_r($Vz == "\115\117\x5f\62\137\x46\101\x43\x54\x4f\x52\x5f\120\x4c\125\107\x49\x4e\x5f\x53\105\x54\124\111\x4e\107\x53", true));
if ($Vz == "\x4d\117\137\x32\x5f\x46\x41\x43\x54\x4f\122\x5f\x50\114\125\107\111\116\137\x53\x45\x54\124\x49\x4e\x47\123") {
goto qmh;
}
MO2f_Utility::mo2f_debug_file("\x55\x53\x65\162\x20\144\x6f\x6e\x27\x74\40\x68\x61\166\x65\x20\141\156\171\164\x68\x69\x6e\x67\x20\x63\157\x6e\x66\x69\x67\165\x72\145\x64");
if (!$this->mo2f_is_new_user($OZ)) {
goto ZTQ;
}
if (!get_option("\155\157\x32\146\141\137" . $OZ->roles[0])) {
goto d4M;
}
if (!(get_option("\x6d\x6f\62\x66\137\x67\x72\141\x63\145\x5f\160\145\x72\x69\x6f\144") === "\157\156")) {
goto UN2;
}
update_user_meta($OZ->ID, "\x6d\157\62\x66\x5f\x75\x73\145\162\x5f\154\157\147\151\156\137\x73\164\141\164\165\x73", 1);
update_user_meta($OZ->ID, "\155\157\x32\x66\137\x67\162\141\143\x65\x5f\160\145\x72\151\x6f\144\137\163\x74\x61\x74\x75\x73", strtotime(current_datetime()->format("\150\x3a\x69\141\x20\x4d\x20\x64\40\131")));
UN2:
d4M:
ZTQ:
if (!MoWpnsUtility::get_mo2f_db_option("\x6d\157\62\x66\x5f\151\156\x6c\151\x6e\145\137\162\x65\x67\x69\x73\164\162\141\164\x69\157\156", "\x73\x69\x74\145\x5f\157\x70\164\x69\157\x6e") && !$this->mo2f_is_grace_period_expired($OZ)) {
goto Ac9;
}
if (!MoWpnsUtility::get_mo2f_db_option("\x6d\157\x32\146\x5f\x65\x6e\141\142\154\x65\x5f\x65\x6d\141\x69\x6c\143\x68\x61\156\147\145", "\x73\x69\164\x65\x5f\157\x70\x74\x69\x6f\x6e")) {
goto rRA;
}
if (MO2F_IS_ONPREM) {
goto TrJ;
}
$vj = $OZ->user_email;
$aq->update_user_details($OZ->ID, array("\155\157\x32\146\x5f\143\x6f\156\x66\x69\x67\165\162\x65\x64\x5f\x32\x46\101\x5f\x6d\145\164\150\x6f\144" => ''));
$Vz = $aq->get_user_detail("\x6d\x6f\137\x32\146\141\x63\x74\157\162\137\x75\163\x65\x72\137\162\145\x67\151\163\164\162\141\x74\151\157\156\137\163\164\141\x74\165\x73", $OZ->ID);
goto men;
TrJ:
men:
$oR = '';
$o4 = '';
if ($Vz == "\115\x4f\x5f\x32\x5f\x46\101\103\x54\x4f\122\x5f\x49\x4e\111\124\111\x41\114\111\x5a\105\137\124\127\x4f\x5f\x46\101\x43\x54\x4f\x52") {
goto boZ;
}
$aq->insert_user($OZ->ID, array("\x75\163\145\x72\137\x69\x64" => $OZ->ID));
$oR = '';
$o4 = "\115\117\x5f\x32\x5f\106\x41\x43\124\117\x52\x5f\x50\x52\117\x4d\120\124\x5f\106\x4f\122\137\x55\x53\x45\x52\x5f\122\x45\107\x49\x53\x54\122\x41\124\x49\117\116";
goto fkM;
boZ:
$oR = '';
$o4 = "\x4d\x4f\137\x32\x5f\x46\101\103\x54\x4f\122\x5f\x50\122\117\115\120\x54\x5f\125\123\105\x52\137\106\117\122\137\x32\x46\x41\137\115\x45\x54\x48\x4f\104\123";
fkM:
goto NbQ;
rRA:
$vj = $OZ->user_email;
$aq->insert_user($OZ->ID, array("\x75\163\x65\162\x5f\151\144" => $OZ->ID));
if (MO2f_Utility::check_if_email_is_already_registered($OZ->ID, $vj)) {
goto aga;
}
$Cr = $OZ->ID;
if (MO2F_IS_ONPREM) {
goto uaL;
}
$oR = '';
$qf = new Two_Factor_Setup();
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
delete_user_meta($Cr, "\x6d\x6f\x32\x66\x5f\x75\163\145\x72\x5f\x65\x6d\141\x69\x6c");
$aq->update_user_details($Cr, array("\x6d\157\62\x66\x5f\x75\x73\x65\x72\x5f\145\x6d\x61\151\x6c" => ''));
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto NEk;
}
if ($Kk["\163\x74\141\x74\x75\x73"] == "\105\x52\122\x4f\122") {
goto OrZ;
}
if (strcasecmp($Kk["\x73\x74\141\164\165\163"], "\125\x53\105\122\x5f\106\117\x55\x4e\104") == 0) {
goto cot;
}
if (strcasecmp($Kk["\163\x74\x61\164\x75\163"], "\x55\x53\x45\x52\137\x4e\x4f\x54\x5f\x46\x4f\125\x4e\x44") == 0) {
goto wK2;
}
if (strcasecmp($Kk["\x73\164\141\x74\x75\x73"], "\x55\123\x45\122\137\x46\x4f\125\x4e\104\x5f\x55\x4e\x44\x45\122\137\104\111\106\106\x45\122\105\116\x54\x5f\103\125\x53\124\x4f\115\x45\122") == 0) {
goto PWu;
}
goto KmG;
OrZ:
$oR = Mo2fConstants::langTranslate($Kk["\x6d\x65\163\x73\141\147\145"]);
$o4 = "\x4d\117\x5f\62\137\x46\x41\103\124\x4f\122\x5f\120\x52\117\x4d\x50\124\x5f\x46\117\122\x5f\122\x45\x4c\x4f\x47\111\116";
goto KmG;
cot:
$aq->update_user_details($Cr, array("\155\157\62\146\137\x75\x73\145\x72\x5f\x65\155\x61\x69\154" => ''));
$aq->update_user_details($Cr, array("\x75\163\145\x72\x5f\162\145\x67\x69\163\164\162\141\x74\151\x6f\156\x5f\x77\x69\x74\x68\x5f\155\x69\156\151\157\x72\141\x6e\147\145" => "\123\x55\x43\x43\x45\x53\x53", "\x6d\x6f\x32\x66\x5f\165\x73\x65\162\x5f\x65\x6d\x61\151\x6c" => $vj, "\155\157\x5f\x32\x66\x61\143\164\157\x72\137\x75\163\x65\162\137\162\x65\147\151\163\x74\162\x61\x74\x69\157\x6e\x5f\163\164\x61\x74\x75\163" => "\x4d\x4f\137\x32\x5f\106\101\103\x54\x4f\x52\x5f\x49\116\111\x54\x49\x41\x4c\111\132\x45\137\x54\127\117\x5f\106\x41\x43\x54\x4f\122"));
$o4 = "\115\x4f\x5f\62\137\106\x41\103\x54\x4f\122\x5f\120\x52\117\x4d\120\x54\137\125\123\105\x52\x5f\106\117\x52\x5f\62\x46\x41\137\x4d\x45\124\110\x4f\x44\x53";
goto KmG;
wK2:
$CG = json_decode($qf->mo_create_user($OZ, $vj), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto tsW;
}
if (strcasecmp($CG["\163\x74\x61\x74\165\x73"], "\123\x55\103\103\105\x53\123") == 0) {
goto tj6;
}
if (strcasecmp($CG["\163\164\x61\164\x75\x73"], "\105\122\x52\117\122") == 0) {
goto nmF;
}
goto BCM;
tj6:
$aq->update_user_details($Cr, array("\x6d\157\62\x66\137\x75\163\145\162\x5f\145\155\141\x69\x6c" => ''));
$aq->update_user_details($Cr, array("\165\163\x65\162\137\162\145\x67\x69\x73\164\162\141\x74\151\x6f\x6e\137\167\x69\164\150\137\155\151\x6e\151\157\162\141\156\x67\145" => "\123\x55\103\103\x45\123\x53", "\155\157\x32\146\x5f\165\x73\145\x72\137\145\155\141\x69\x6c" => $vj, "\155\157\137\62\146\141\x63\x74\x6f\162\137\165\163\145\162\x5f\162\x65\x67\x69\x73\x74\162\x61\x74\x69\157\x6e\137\x73\x74\141\x74\x75\x73" => "\115\117\x5f\x32\137\x46\101\x43\124\117\122\137\x49\x4e\111\124\111\x41\x4c\111\x5a\105\x5f\124\127\117\x5f\106\101\x43\x54\x4f\x52"));
$oR = '';
$o4 = "\x4d\x4f\137\x32\137\x46\x41\103\124\117\122\x5f\120\x52\x4f\115\x50\x54\137\x55\123\x45\122\137\x46\117\x52\x5f\x32\x46\x41\137\x4d\105\x54\110\x4f\104\123";
goto BCM;
nmF:
$oR = Mo2fConstants::langTranslate($CG["\155\x65\163\163\141\147\145"]);
$o4 = "\x4d\x4f\137\62\x5f\x46\x41\103\x54\x4f\122\x5f\120\x52\117\x4d\x50\124\137\x46\x4f\x52\x5f\122\x45\114\117\107\x49\116";
BCM:
tsW:
goto KmG;
PWu:
$oR = __("\124\x68\145\x20\x65\155\141\x69\154\x20\x61\x73\x73\x6f\x63\151\141\x74\145\144\x20\x77\151\x74\150\40\171\157\165\162\x20\x61\143\143\x6f\165\x6e\x74\x20\151\163\40\x61\154\x72\145\x61\144\171\40\x72\145\147\x69\x73\164\x65\162\145\x64\56\40\120\154\145\x61\x73\x65\40\143\x6f\156\x74\x61\143\164\40\171\157\165\x72\40\x61\144\x6d\x69\x6e\x20\x74\157\40\143\x68\x61\156\147\145\x20\164\150\x65\40\145\x6d\x61\x69\x6c\56", "\x6d\x69\156\151\x6f\x72\x61\156\147\145\55\62\x2d\146\141\x63\x74\x6f\162\55\141\x75\x74\150\x65\156\x74\151\143\x61\x74\x69\157\156");
$o4 = "\115\x4f\137\x32\137\106\101\x43\124\117\122\x5f\120\x52\117\115\120\124\137\x46\x4f\122\x5f\x52\x45\114\117\x47\x49\116";
KmG:
NEk:
delete_user_meta($Cr, "\155\157\x5f\62\146\141\x5f\166\x65\162\151\146\x79\137\157\164\160\137\x63\x72\x65\141\x74\x65\x5f\141\x63\x63\157\x75\156\164");
goto uzv;
uaL:
$aq->update_user_details($Cr, array("\x6d\x6f\x32\146\x5f\x75\x73\x65\162\x5f\x65\155\x61\x69\x6c" => ''));
$aq->update_user_details($Cr, array("\165\163\x65\162\137\x72\x65\x67\151\163\x74\x72\x61\164\x69\x6f\x6e\137\x77\151\164\150\x5f\155\x69\156\x69\x6f\162\x61\x6e\x67\145" => "\x53\x55\103\103\105\x53\x53", "\155\157\x32\x66\137\165\163\x65\x72\x5f\x65\x6d\x61\151\154" => $vj, "\155\x6f\x5f\x32\x66\141\143\x74\157\x72\137\165\x73\145\x72\x5f\162\x65\147\x69\163\x74\162\x61\x74\x69\157\x6e\x5f\163\164\x61\x74\165\163" => "\x4d\117\137\x32\x5f\x46\x41\103\x54\117\x52\x5f\x49\116\x49\x54\111\101\114\111\x5a\105\137\124\127\117\x5f\x46\x41\103\x54\117\122"));
$oR = '';
$o4 = "\115\117\137\x32\x5f\106\101\x43\124\117\122\x5f\120\x52\117\115\x50\x54\137\125\x53\x45\x52\x5f\106\117\122\x5f\62\x46\101\137\115\105\x54\x48\117\x44\123";
delete_user_meta($Cr, "\155\x6f\137\x32\x66\x61\137\166\145\162\x69\x66\x79\x5f\x6f\164\160\x5f\143\162\x65\141\164\x65\137\141\x63\143\x6f\x75\156\x74");
uzv:
goto KeF;
aga:
$oR = __("\x54\x68\145\x20\145\155\141\x69\x6c\x20\x61\163\163\x6f\x63\x69\x61\x74\x65\144\x20\167\151\164\x68\40\171\x6f\165\x72\40\141\x63\143\157\x75\x6e\x74\x20\x69\x73\40\141\154\x72\x65\x61\144\171\40\x72\145\x67\x69\x73\164\x65\x72\x65\x64\x2e\40\x50\x6c\x65\x61\163\145\x20\x63\x6f\156\x74\141\x63\164\x20\x79\x6f\x75\162\40\x61\144\155\151\156\x20\x74\157\40\143\x68\141\156\x67\145\x20\x74\x68\145\x20\x65\155\141\151\154\x2e", "\155\x69\156\x69\x6f\x72\141\x6e\x67\145\x2d\62\x2d\146\141\x63\x74\157\x72\x2d\141\x75\164\150\x65\x6e\164\x69\x63\141\x74\x69\157\156");
$o4 = "\115\117\x5f\62\137\106\101\103\124\x4f\x52\x5f\120\x52\x4f\x4d\120\124\137\x46\x4f\122\137\x52\105\114\x4f\x47\111\x4e";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
KeF:
NbQ:
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto PuA;
Ac9:
if ($Hl) {
goto dSJ;
}
$this->remove_current_activity();
$wX = new WP_Error("\145\162\162\157\162", __("\124\167\157\55\146\x61\143\164\x6f\x72\40\151\x73\40\156\x6f\164\x20\145\156\x61\142\x6c\145\x64\x20\x66\157\x72\40\171\x6f\165\x2e\x20\120\x6c\x65\x61\x73\145\x20\154\157\147\x69\156\40\165\163\x69\x6e\x67\x20\165\x73\145\162\156\141\155\145\x20\x61\x6e\x64\x20\160\x61\x73\163\x77\x6f\162\144\56", "\x6d\151\x6e\x69\x6f\162\x61\x6e\x67\145\x2d\x32\55\x66\141\143\164\x6f\162\x2d\x61\165\164\x68\145\156\164\151\143\141\164\x69\157\156"));
return $wX;
goto akm;
dSJ:
MO2f_Utility::mo2f_debug_file("\x4c\x6f\147\x67\x65\144\40\111\156\x20\x53\x75\143\143\145\x73\163\x66\165\154\x6c\x79\x20" . "\x20\125\x73\x65\x72\x5f\111\120\x2d" . $ce->get_client_ip() . "\40\125\163\x65\162\137\111\x64\x2d" . $OZ->ID . "\40\105\x6d\x61\x69\x6c\55" . $OZ->user_email);
$this->mo2fa_pass2login($kO);
akm:
PuA:
goto ijO;
qmh:
MO2f_Utility::mo2f_debug_file("\125\163\145\x72\x20\x68\141\163\40\141\x6e\171\40\x32\x46\101\40\155\145\164\x68\157\x64\x20\143\157\156\x66\151\147\x75\162\x65\144");
$vj = $aq->get_user_detail("\x6d\157\x32\x66\137\165\163\145\x72\x5f\145\155\141\x69\x6c", $OZ->ID);
try {
if (MO2F_IS_ONPREM) {
goto GZs;
}
$P1 = mo2f_collect_attributes($vj, stripslashes($aV));
MO2f_Utility::set_user_values($dj, "\155\157\x32\x66\137\x72\142\x61\x5f\163\x74\x61\164\x75\x73", $P1);
$this->mo2f_rbastatus = $P1;
goto X8R;
GZs:
$P1 = mo2f_collect_attributes($OZ->ID, $aV, $dj);
X8R:
} catch (Exception $mT) {
echo $mT->getMessage();
}
if ($P1["\163\164\x61\x74\165\163"] == "\123\125\x43\x43\x45\x53\123" && $P1["\x64\145\143\x69\163\x69\x6f\156\137\x66\154\141\147"]) {
goto DQ9;
}
if ($P1["\x73\164\141\x74\165\x73"] == "\104\x45\116\131" && MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\62\146\x5f\x72\x62\x61\137\x69\x6e\163\164\141\154\154\145\144")) {
goto qA1;
}
if ($P1["\163\x74\141\x74\x75\163"] == "\x45\122\x52\117\122" && MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\x32\146\x5f\x72\x62\x61\137\151\156\x73\164\141\154\x6c\x65\144")) {
goto EcM;
}
if ($P1["\163\164\141\x74\x75\163"] == "\x41\124\x54\x52\x49\x42\125\x54\x45\137\x45\122\122\117\122") {
goto Zfd;
}
if ($P1["\x73\x74\141\x74\165\163"] == "\101\103\124\x49\117\116\x5f\122\105\121\125\x49\x52\105\x44" and !get_site_option("\155\x6f\62\x66\137\x61\x63\164\151\x6f\x6e\137\x72\x62\x61\x5f\154\x69\155\151\x74\137\x65\x78\143\x65\145\144") and $aq->get_all_device_count_by_user($OZ->ID) >= MoWpnsUtility::get_mo2f_db_option("\155\157\x32\x66\137\144\145\166\x69\143\145\x5f\x6c\151\x6d\x69\x74", "\163\151\x74\145\x5f\x6f\x70\x74\151\157\x6e")) {
goto ZKv;
}
if (!$Zl) {
goto XI7;
}
$uV = '';
if (MO2F_IS_ONPREM) {
goto WFb;
}
$uV = mo2f_get_user_2ndfactor($OZ);
goto WEA;
WFb:
$uV = $aq->get_user_detail("\x6d\x6f\x32\146\137\143\157\x6e\146\151\x67\x75\162\145\x64\137\x32\x46\101\137\x6d\x65\164\x68\157\144", $OZ->ID);
if (!($uV == '')) {
goto FVf;
}
$uV = "\116\x4f\116\105";
FVf:
$n4 = array("\107\x4f\117\107\114\x45\40\101\125\x54\x48\105\116\124\111\103\x41\x54\117\x52" => "\x47\157\x6f\147\x6c\x65\40\101\165\x74\x68\x65\x6e\164\151\x63\141\164\x6f\162", "\113\x42\x41" => "\x53\x65\x63\x75\162\x69\x74\x79\40\121\165\145\163\164\151\157\156\x73", "\x4f\125\x54\x20\x4f\106\40\102\x41\x4e\x44\x20\x45\x4d\x41\x49\x4c" => "\x45\155\x61\151\x6c\x20\x56\145\x72\151\146\x69\143\141\164\x69\x6f\x6e", "\x53\115\123" => "\x4f\x54\x50\40\117\x76\145\162\40\x53\115\x53", "\x4f\x54\120\137\x4f\126\105\x52\x5f\x45\x4d\x41\x49\x4c" => "\x4f\124\x50\x20\x4f\x76\x65\162\40\x45\x6d\x61\151\154", "\x4f\124\x50\40\x4f\x56\105\x52\x20\124\105\x4c\105\x47\x52\x41\115" => "\117\x54\120\x4f\x76\145\x72\x54\145\154\x65\x67\x72\141\155");
$U8 = 0;
$VW = (array) $this->mo2fa_return_methods_value($OZ->ID);
$H2 = (array) get_site_option("\155\157\62\146\x5f\141\165\164\150\137\x6d\x65\164\150\x6f\144\163\x5f\146\157\x72\137\165\163\x65\162\163");
foreach ($H2 as $Yt => $kB) {
if (!in_array($n4[$Yt], $VW)) {
goto s0P;
}
$U8 = $U8 + 1;
$uV = $n4[$Yt];
s0P:
uUO:
}
Dpn:
if (get_site_option("\x6d\157\62\x66\x5f\155\165\154\164\151\x5f\x66\x61\143\x74\157\x72\137\141\165\x74\x68\x65\x6e\164\151\143\141\164\151\157\156") && $U8 > 1 && !MoWpnsUtility::get_mo2f_db_option("\x6d\x6f\x32\x66\x5f\x65\x6e\141\x62\x6c\145\137\x32\x66\x61\x5f\x70\x72\x6f\x6d\160\x74\x5f\157\x6e\137\x6c\157\x67\151\x6e\137\160\x61\147\145", "\x73\151\164\145\137\157\160\164\151\x6f\156")) {
goto hQw;
}
if (!($U8 > 1)) {
goto QYJ;
}
$uV = $aq->get_user_detail("\155\x6f\x32\146\x5f\x63\x6f\156\146\151\x67\x75\162\x65\x64\x5f\x32\106\101\x5f\x6d\145\164\150\157\144", $OZ->ID);
QYJ:
goto VqQ;
hQw:
update_site_option("\155\157\62\x66\137\x6c\157\147\x69\156\137\x77\151\164\150\137\155\146\x61\137\165\x73\x65", "\61");
mo2fa_prompt_mfa_form_for_user($VW, $dj, $kO, $OZ);
exit;
VqQ:
WEA:
if ($uV == "\155\x69\156\x69\x4f\x72\x61\156\x67\145\40\x53\x6f\x66\x74\x20\124\157\x6b\x65\156") {
goto XJ7;
}
if ($uV == "\155\151\x6e\151\x4f\x72\141\156\147\145\x20\x50\x75\163\x68\x20\116\157\x74\x69\146\x69\x63\x61\164\151\x6f\x6e") {
goto XL9;
}
if ($uV == "\x6d\151\156\151\117\x72\x61\x6e\x67\x65\x20\121\122\x20\103\x6f\x64\x65\40\101\x75\x74\x68\145\156\x74\x69\x63\141\164\x69\x6f\x6e") {
goto aVS;
}
if ($uV == "\x53\145\x63\x75\x72\151\x74\x79\x20\x51\165\145\x73\x74\x69\157\x6e\x73") {
goto Oyl;
}
if ($uV == "\117\x54\x50\x4f\x76\145\x72\x54\x65\x6c\x65\147\162\141\x6d") {
goto WIE;
}
if ($uV == "\107\157\157\147\154\145\x20\x41\x75\164\150\x65\156\x74\x69\x63\141\164\157\x72") {
goto vae;
}
if ($uV == "\117\x54\120\40\117\x76\x65\x72\40\123\115\123") {
goto SWP;
}
if ($uV == "\117\x54\x50\40\117\166\x65\162\40\x45\x6d\x61\151\x6c" || $uV == "\x4f\124\120\x20\x4f\x56\x45\122\40\x45\x4d\101\111\114" || $uV == "\x45\x4d\x41\111\114" || $uV == "\117\124\120\137\x4f\x56\x45\x52\x5f\105\x4d\101\111\114") {
goto y1f;
}
goto H4u;
XJ7:
$uV = "\x53\x4f\x46\x54\40\x54\x4f\113\105\116";
goto H4u;
XL9:
$uV = "\120\125\123\x48\40\x4e\x4f\x54\x49\x46\x49\103\x41\124\x49\117\116\123";
goto H4u;
aVS:
$uV = "\x4d\117\x42\x49\x4c\x45\x20\101\x55\124\x48\105\x4e\124\111\103\x41\124\111\x4f\116";
goto H4u;
Oyl:
$uV = "\x4b\102\x41";
goto H4u;
WIE:
$uV = "\x4f\124\120\40\117\166\x65\162\40\x54\145\x6c\x65\x67\162\x61\x6d";
goto H4u;
vae:
$uV = "\x47\117\117\107\x4c\x45\40\101\125\x54\110\105\116\x54\111\x43\x41\124\117\x52";
goto H4u;
SWP:
$uV = "\x53\115\x53";
goto H4u;
y1f:
$uV = "\x45\115\x41\111\x4c";
H4u:
if (($uV == "\x47\117\117\107\114\x45\40\101\125\124\x48\105\116\x54\111\103\101\x54\x4f\122" || $uV == "\123\x4f\x46\124\x20\x54\x4f\113\105\116" || $uV == "\101\x55\124\110\131\40\x41\x55\124\x48\x45\116\124\111\x43\101\x54\x4f\122") && MoWpnsUtility::get_mo2f_db_and_migrate("\155\157\x32\146\137\x65\x6e\141\142\154\x65\137\x32\146\141\137\160\x72\157\155\160\x74\137\157\x6e\x5f\154\157\147\x69\156\137\160\x61\x67\145", "\147\x65\164\137\x6f\160\x74\x69\x6f\x6e") && !MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\x32\146\137\162\145\x6d\x65\155\x62\145\x72\x5f\x64\x65\x76\151\143\145") && !isset($_POST["\x6d\x6f\137\x77\157\157\x63\x6f\x6d\x6d\x65\162\x63\145\137\154\157\147\x69\x6e\137\x70\162\157\155\160\164"])) {
goto HnX;
}
if (MO2f_Utility::check_if_request_is_from_mobile_device($_SERVER["\x48\124\x54\x50\137\125\123\105\122\137\101\107\105\x4e\124"]) && $hQ && MoWpnsUtility::get_mo2f_db_option("\155\x6f\x32\x66\x5f\145\156\141\x62\154\x65\137\155\x6f\x62\151\x6c\145\x5f\x73\x75\160\x70\157\x72\x74", "\163\151\164\145\137\157\160\x74\x69\x6f\x6e")) {
goto tmL;
}
MO2f_Utility::mo2f_debug_file("\x24\155\157\62\146\x5f\163\x65\143\x6f\156\144\137\x66\141\143\x74\x6f\x72");
MO2f_Utility::mo2f_debug_file(print_r($uV, true));
if ($uV == "\x4d\117\x42\111\114\105\x20\x41\x55\x54\110\105\x4e\x54\111\103\101\x54\111\x4f\116") {
goto Gxf;
}
if ($uV == "\120\x55\123\110\40\116\x4f\x54\111\106\111\103\x41\124\x49\117\116\123" || $uV == "\x4f\125\124\x20\117\x46\40\x42\101\x4e\x44\40\x45\115\101\111\114" || $uV == "\x45\x6d\x61\151\x6c\40\126\x65\x72\x69\146\151\x63\141\164\x69\157\x6e") {
goto pOG;
}
if ($uV == "\x53\117\x46\x54\40\x54\x4f\x4b\x45\x4e" || $uV == "\x53\x4d\123" || $uV == "\x50\110\x4f\x4e\105\40\126\105\122\111\106\111\x43\101\x54\x49\x4f\x4e" || $uV == "\107\117\117\x47\114\105\40\101\125\x54\110\105\116\x54\111\103\x41\x54\x4f\122" || $uV == "\105\x4d\x41\111\x4c" || $uV == "\x4f\124\120\x20\117\x76\x65\162\x20\x54\145\154\x65\147\x72\x61\155") {
goto OOZ;
}
if ($uV == "\x4b\x42\101" or $uV == "\123\145\x63\x75\x72\x69\164\x79\40\121\165\x65\x73\164\151\x6f\156\163") {
goto Rj0;
}
if ($uV == "\x4e\117\x4e\105") {
goto q3y;
}
$this->remove_current_activity($dj);
$wX = new WP_Error();
MO2f_Utility::mo2f_debug_file("\124\167\x6f\x20\146\x61\x63\x74\x6f\162\x20\155\x65\164\x68\157\144\40\150\x61\x73\40\156\x6f\x74\x20\142\145\145\x6e\x20\143\157\x6e\x66\x69\147\165\x72\145\x64\40" . "\x20\125\163\x65\162\137\111\120\x2d" . $ce->get_client_ip() . "\x20\125\163\145\x72\x5f\x49\144\55" . $OZ->ID . "\x20\105\155\x61\x69\x6c\55" . $OZ->user_email);
$wX->add("\x65\155\x70\164\171\137\165\x73\145\x72\156\141\x6d\x65", __("\x3c\x73\164\x72\x6f\156\147\x3e\105\122\x52\117\122\74\57\163\x74\x72\157\156\x67\76\72\x20\124\167\157\x20\106\141\x63\x74\157\162\40\155\145\164\150\x6f\x64\x20\150\141\163\40\x6e\x6f\164\40\x62\x65\x65\x6e\40\143\x6f\x6e\x66\x69\x67\165\x72\145\x64\x2e"));
return $wX;
goto vf0;
Gxf:
MO2f_Utility::mo2f_debug_file("\x49\x6e\151\164\x69\x61\164\x69\x6e\147\x20\62\x66\x61\x20\x76\141\154\151\x64\x61\164\151\157\x6e\x20\x74\145\155\160\154\141\164\145\x20\x66\157\x72\x20" . $uV . "\x20\x55\x73\145\x72\x5f\x49\120\x2d" . $ce->get_client_ip() . "\x20\125\x73\145\162\x5f\x49\x64\55" . $OZ->ID . "\x20\x45\155\x61\151\154\55" . $OZ->user_email);
$this->mo2f_pass2login_mobile_verification($OZ, $kO, $dj);
goto vf0;
pOG:
MO2f_Utility::mo2f_debug_file("\x49\156\x69\x74\151\x61\164\151\156\147\x20\62\146\141\x20\166\x61\x6c\151\x64\141\x74\x69\157\x6e\40\164\145\155\160\154\x61\164\145\40\x66\x6f\162\x20" . $uV . "\x20\125\163\145\x72\x5f\x49\120\x2d" . $ce->get_client_ip() . "\x20\125\x73\x65\x72\137\111\x64\55" . $OZ->ID . "\40\105\155\141\x69\x6c\x2d" . $OZ->user_email);
$this->mo2f_pass2login_push_oobemail_verification($OZ, $uV, $kO, $dj);
goto vf0;
OOZ:
MO2f_Utility::mo2f_debug_file("\111\156\x69\x74\x69\x61\164\x69\x6e\147\40\x32\x66\x61\40\x76\141\x6c\151\x64\141\164\x69\157\156\x20\164\x65\155\160\x6c\141\x74\145\x20\146\157\x72\40" . $uV . "\x20\125\163\145\162\x5f\x49\x50\55" . $ce->get_client_ip() . "\40\x55\163\x65\162\137\x49\x64\55" . $OZ->ID . "\x20\x45\155\141\x69\x6c\55" . $OZ->user_email);
$this->mo2f_pass2login_otp_verification($OZ, $uV, $kO, $dj);
goto vf0;
Rj0:
MO2f_Utility::mo2f_debug_file("\111\156\x69\164\x69\x61\x74\151\x6e\x67\40\62\x66\x61\40\166\141\154\151\144\141\x74\151\x6f\156\x20\x74\x65\x6d\x70\x6c\141\x74\145\40\146\x6f\162\x20" . $uV . "\x20\125\163\145\x72\x5f\x49\x50\x2d" . $ce->get_client_ip() . "\40\125\x73\145\x72\x5f\x49\x64\55" . $OZ->ID . "\40\x45\x6d\141\151\154\55" . $OZ->user_email);
$this->mo2f_pass2login_kba_verification($OZ->ID, $kO, $dj);
goto vf0;
q3y:
MO2f_Utility::mo2f_debug_file("\x6d\x6f\x32\146\x5f\x73\145\x63\157\156\144\137\x66\x61\x63\x74\157\162\x20\151\x73\40\116\117\x4e\x45" . "\40\125\163\x65\x72\x5f\111\x50\x2d" . $ce->get_client_ip() . "\40\x55\163\145\x72\x5f\x49\x64\55" . $OZ->ID . "\x20\105\x6d\x61\x69\x6c\x2d" . $OZ->user_email);
if (MO2f_Utility::get_index_value("\107\x4c\117\x42\x41\114\x53", "\155\157\62\x66\x5f\x69\x73\137\x61\x6a\141\170\x5f\162\x65\161\165\145\163\x74")) {
goto H6v;
}
return $OZ;
goto ta6;
H6v:
$this->mo2fa_pass2login($kO, $dj);
ta6:
vf0:
goto A_j;
tmL:
$this->mo2f_pass2login_kba_verification($OZ->ID, $kO, $dj);
A_j:
goto Fso;
HnX:
$wX = $this->mo2f_validate_soft_token($OZ, $uV, $wp, $dj, $kO);
if (!is_wp_error($wX)) {
goto JbR;
}
return $wX;
JbR:
Fso:
goto Dak;
DQ9:
MO2f_Utility::mo2f_debug_file("\122\145\x6d\x65\155\x62\145\x72\x65\x64\x20\x44\x65\x76\151\143\x65\40\x41\156\144\x20\114\157\x67\147\x65\x64\x20\x49\156\x20\123\165\x63\x63\x65\163\x73\x66\x75\x6c\154\x79\40" . "\40\x55\x73\145\162\137\111\x50\55" . $ce->get_client_ip() . "\x20\125\163\145\x72\x5f\111\144\x2d" . $OZ->ID . "\x20\x45\155\141\151\x6c\55" . $OZ->user_email);
$this->mo2fa_pass2login($kO, $dj);
goto Dak;
qA1:
MO2f_Utility::mo2f_debug_file("\122\x65\x6d\x65\x6d\x62\x65\162\40\x44\145\166\x69\143\145\40\x41\x63\143\x65\163\x73\40\x44\145\156\151\145\x64\40" . "\40\125\x73\145\162\x5f\111\120\55" . $ce->get_client_ip() . "\x20\125\163\x65\162\x5f\x49\144\55" . $OZ->ID . "\40\x45\x6d\141\151\154\x2d" . $OZ->user_email);
$this->mo2f_restrict_access("\x41\143\143\x65\x73\x73\137\x64\x65\x6e\x69\145\144");
exit;
goto Dak;
EcM:
MO2f_Utility::mo2f_debug_file("\122\x65\x6d\x65\155\142\145\x72\x20\x44\145\x76\x69\143\x65\x20\x41\143\x63\145\x73\163\40\x44\x65\x6e\151\145\x64\40" . "\40\125\x73\145\x72\x5f\x49\x50\x2d" . $ce->get_client_ip() . "\40\125\163\x65\x72\137\111\x64\55" . $OZ->ID . "\40\x45\x6d\141\x69\154\55" . $OZ->user_email);
$this->mo2f_restrict_access("\101\143\143\x65\163\x73\x5f\144\x65\156\x69\x65\144");
exit;
goto Dak;
Zfd:
MO2f_Utility::mo2f_debug_file("\122\x65\x6d\x65\x6d\142\145\162\40\x44\x65\166\x69\143\x65\x20\101\x74\x74\162\151\x62\165\x74\145\x20\105\x72\162\x6f\162\x20" . "\x20\125\163\x65\162\x5f\x49\x50\55" . $ce->get_client_ip() . "\x20\125\x73\145\x72\137\x49\144\x2d" . $OZ->ID . "\40\x45\x6d\141\x69\154\x2d" . $OZ->user_email);
mo2f_rba_attribute_error();
exit;
goto Dak;
ZKv:
MO2f_Utility::mo2f_debug_file("\x52\x65\155\x65\155\x62\x65\162\40\104\x65\166\x69\143\145\x20\105\170\x63\145\145\x64\145\144\x20" . "\40\x55\163\145\162\137\x49\x50\55" . $ce->get_client_ip() . "\40\125\163\145\x72\137\111\x64\x2d" . $OZ->ID . "\x20\105\x6d\x61\x69\154\x2d" . $OZ->user_email);
mo2f_device_exceeded_error();
exit;
goto Dak;
XI7:
if ($Hl) {
goto Lt8;
}
$this->remove_current_activity();
$wX = new WP_Error("\145\x72\162\x6f\x72", __("\124\167\157\x2d\x66\141\143\164\157\x72\40\151\163\x20\x6e\x6f\x74\x20\x65\156\x61\142\x6c\145\x64\40\x66\x6f\162\x20\x79\157\x75\56\x20\120\x6c\145\x61\x73\145\40\154\157\147\151\156\40\x75\163\x69\x6e\x67\40\x75\163\145\162\156\141\x6d\145\40\x61\156\144\x20\x70\141\163\x73\167\x6f\x72\x64\56", "\155\151\156\151\157\x72\141\x6e\147\x65\x2d\x32\x2d\146\x61\143\164\x6f\162\x2d\141\165\164\x68\x65\156\164\x69\143\141\x74\151\157\x6e"));
return $wX;
goto KRB;
Lt8:
$this->mo2fa_pass2login($kO);
KRB:
Dak:
ijO:
CwR:
}
public function mo2fa_return_methods_value($ll)
{
global $aq;
$rc = $aq->get_user_configured_methods($ll);
$kB = empty($rc) ? '' : get_object_vars($rc[0]);
$q5 = array();
foreach ($kB as $s2 => $VZ) {
if (!strpos($s2, "\143\157\156\146\x69\147\137\163\164\x61\x74\165\163")) {
goto UgQ;
}
$OF = explode("\x5f", $s2);
$sT = MO2f_Utility::mo2f_decode_2_factor($OF[1], "\x77\160\144\x62");
if (!("\x31" === $kB[$s2])) {
goto Hth;
}
array_push($q5, $sT);
Hth:
UgQ:
OzL:
}
WAp:
return $q5;
}
function mo2fa_inline($OZ, $kO, $d0)
{
global $aq;
$Cr = $OZ->ID;
$vj = $OZ->user_email;
$aq->insert_user($Cr, array("\165\x73\145\162\137\x69\x64" => $Cr));
$aq->update_user_details($Cr, array("\x75\163\145\x72\137\x72\x65\147\x69\163\x74\162\141\x74\151\x6f\156\x5f\x77\x69\164\150\137\155\151\156\x69\157\162\x61\156\x67\145" => "\x53\x55\103\x43\x45\123\123", "\155\x6f\x32\146\137\165\x73\145\162\x5f\145\x6d\x61\151\154" => $vj, "\x6d\x6f\137\x32\x66\141\x63\x74\157\162\x5f\x75\x73\x65\x72\137\162\145\147\x69\163\x74\162\141\164\x69\157\156\137\163\x74\x61\164\x75\163" => "\115\117\137\62\x5f\106\101\103\124\x4f\122\x5f\111\116\x49\x54\111\x41\114\111\132\x45\137\x54\x57\117\x5f\x46\101\x43\x54\117\122"));
$oR = '';
$o4 = "\x4d\117\x5f\62\x5f\x46\x41\x43\124\x4f\122\x5f\x50\122\x4f\115\120\x54\x5f\125\x53\105\122\x5f\x46\117\x52\x5f\x32\106\x41\x5f\x4d\x45\124\110\117\104\123";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $d0);
}
function mo2f_validate_soft_token($OZ, $uV, $xp, $dj, $kO = null)
{
global $aq;
$vj = $aq->get_user_detail("\x6d\x6f\62\146\137\x75\163\145\162\x5f\x65\155\x61\x69\x6c", $OZ->ID);
$eO = new Customer_Setup();
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\146\x5f\143\x75\x73\164\157\x6d\145\162\x4b\145\x79");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\62\x66\137\x61\x70\x69\137\153\145\171");
$CG = json_decode($eO->validate_otp_token($uV, $vj, null, $xp, $Tp, $Lv), true);
if (strcasecmp($CG["\163\164\141\x74\x75\x73"], "\x53\x55\x43\x43\105\123\x53") == 0) {
goto wpk;
}
if (MO2f_Utility::get_index_value("\107\114\117\102\x41\x4c\123", "\155\157\62\146\137\151\x73\137\x61\152\x61\170\137\162\145\161\165\145\x73\x74")) {
goto yut;
}
return new WP_Error("\x69\x6e\x76\141\154\x69\144\137\157\x6e\x65\137\x74\x69\x6d\145\x5f\x70\141\x73\x73\143\x6f\144\x65", "\x3c\x73\164\x72\x6f\156\x67\76\105\122\x52\x4f\122\74\x2f\x73\164\162\157\156\147\x3e\x3a\x20\111\156\166\x61\x6c\151\144\40\x4f\x6e\x65\40\x54\x69\x6d\x65\x20\x50\x61\163\163\143\x6f\144\145\56");
goto zyy;
yut:
$b1 = array("\156\x6f\164\x69\x63\x65" => "\x3c\x64\x69\166\40\163\164\171\154\x65\75\x22\x62\157\x72\x64\145\x72\55\x6c\145\x66\164\x3a\x33\160\170\40\x73\157\154\151\x64\40\43\x64\x63\63\62\63\62\73\x22\76\x26\x6e\x62\x73\x70\73\x20\111\x6e\166\141\x6c\151\144\x20\117\156\145\x20\x54\x69\x6d\x65\40\120\141\x73\163\143\x6f\144\145\x2e");
wp_send_json_success($b1);
zyy:
goto XjC;
wpk:
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\x6f\x32\x66\x5f\162\x65\x6d\145\x6d\x62\145\162\137\144\145\166\151\x63\145");
if ($e8) {
goto kNq;
}
$this->mo2fa_pass2login($kO, $dj);
goto bdE;
kNq:
$o4 = "\115\117\x5f\62\x5f\106\101\103\x54\117\x52\x5f\122\105\115\x45\x4d\102\105\x52\x5f\x54\122\125\123\124\105\104\137\x44\105\x56\111\103\x45";
$this->miniorange_pass2login_form_fields($o4, null, $kO, null, $dj);
bdE:
XjC:
}
function mo2f_otp_over_email_send($vj, $kO, $dj, $current_user, $w6)
{
global $aq;
$kx = new Customer_Setup();
$CG = '';
$C7 = array();
$ny = 0;
if ($w6 == "\117\125\124\x20\x4f\106\40\x42\101\x4e\x44\40\x45\x4d\x41\x49\114") {
goto cFX;
}
$o4 = "\115\x4f\x5f\62\137\106\101\103\x54\117\122\137\x50\122\117\115\x50\x54\137\125\123\105\122\x5f\x46\117\x52\x5f\x32\106\101\137\115\x45\124\110\117\x44\x53";
$aq->update_user_details($current_user->id, array("\155\157\137\x32\x66\141\143\x74\x6f\162\137\165\x73\x65\162\x5f\x72\x65\x67\x69\163\x74\162\141\x74\x69\157\156\x5f\163\x74\141\x74\165\x73" => "\115\x4f\137\62\x5f\x46\x41\x43\124\117\122\x5f\117\124\x50\x5f\105\x4d\x41\111\x4c\137\x53\105\124\x55\120\137\x52\x45\x4d\x41\111\x4e\111\x4e\x47"));
$this->miniorange_pass2login_form_fields($o4, '', $kO, null, $dj, 1);
goto Jcg;
cFX:
$Tp = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\x32\x66\x5f\143\165\x73\164\157\155\145\x72\x4b\145\171");
$Lv = MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\x32\146\x5f\x61\160\x69\137\153\145\171");
$CG = $kx->send_otp_token($vj, "\x4f\x55\124\40\x4f\106\x20\102\x41\116\104\40\x45\115\101\x49\114", $Tp, $Lv, $current_user);
$C7 = json_decode($CG, true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto nlc;
}
if ($C7["\163\x74\x61\x74\x75\x73"] == "\x53\125\x43\x43\105\123\x53") {
goto nLL;
}
$o4 = "\x4d\x4f\x5f\x32\137\x46\x41\103\x54\117\x52\x5f\x50\122\117\x4d\x50\124\x5f\125\123\105\122\137\106\x4f\122\137\62\106\x41\x5f\115\105\124\110\x4f\104\123";
$oR = "\123\115\124\x50\40\151\163\x20\x6e\x6f\x74\x20\163\x65\x74\x2c\x20\160\154\145\x61\x73\x65\40\x63\157\156\x66\151\147\165\x72\x65\x20\123\x4d\x54\x50\x20\x73\145\162\x76\145\162\40\146\151\162\x73\164\56";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
goto tWR;
nLL:
$o4 = "\x4d\x4f\x5f\x32\x5f\106\101\103\124\x4f\122\x5f\x43\110\101\114\x4c\x45\116\107\105\x5f\117\x4f\102\137\105\x4d\x41\x49\x4c";
$oR = "\101\156\40\x65\155\141\151\x6c\40\x68\141\163\x20\x62\x65\145\x6e\x20\163\x65\x6e\x74\40\164\157\x20" . MO2f_Utility::mo2f_get_hidden_email($vj) . "\56\40\127\x65\x20\x61\162\x65\40\167\x61\151\164\x69\x6e\x67\40\146\157\x72\40\x79\157\165\162\x20\x61\x70\x70\162\x6f\x76\x61\154\x2e";
$this->miniorange_pass2login_form_fields($o4, $oR, $kO, null, $dj);
tWR:
nlc:
Jcg:
}
function mo2f_restrict_access($M2)
{
apply_filters("\155\157\62\146\x5f\162\142\x61\137\141\144\x64\x6f\x6e", $M2);
exit;
}
function mo2f_collect_device_attributes_for_authenticated_user($OZ, $kO = null)
{
global $aq;
$d0 = $this->create_session();
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\x32\x66\x5f\x72\x65\x6d\145\x6d\142\x65\162\x5f\144\x65\x76\151\143\x65");
if ($e8) {
goto qbt;
}
$this->miniorange_initiate_2nd_factor($OZ, null, $kO, null, $d0);
goto raX;
qbt:
$this->miniorange_pass2login_start_session();
$d0 = $this->create_session();
MO2f_Utility::set_user_values($d0, "\x6d\157\x32\146\137\143\165\162\162\x65\x6e\x74\x5f\165\163\x65\162\x5f\151\x64", $OZ->ID);
$this->mo2f_userID = $OZ->ID;
mo2f_collect_device_attributes_handler($d0, $kO);
exit;
raX:
}
function mo2f_check_username_password($user, $Sz, $q9, $kO = null)
{
global $ce;
MO2f_Utility::mo2f_debug_file("\x69\156\40\x6d\157\x32\146\x5f\x63\x68\145\143\x6b\x5f\x75\163\x65\x72\x6e\141\x6d\x65\x5f\160\141\163\x73\x77\157\x72\x64");
if (!(is_a($user, "\127\x50\137\x45\162\x72\x6f\x72") && !empty($user))) {
goto AuM;
}
MO2f_Utility::mo2f_debug_file("\145\162\x72\x6f\162\40\x69\x73\40\157\x63\x63\x75\162\145\x64");
MO2f_Utility::mo2f_debug_file(print_r($Sz, true));
if (MO2f_Utility::get_index_value("\107\114\x4f\x42\101\x4c\x53", "\x6d\x6f\62\x66\x5f\151\x73\x5f\x61\x6a\x61\x78\137\162\x65\x71\165\x65\163\164")) {
goto YWc;
}
MO2f_Utility::mo2f_debug_file("\x4e\157\164\x20\x61\156\40\x41\x4a\101\130\40\x72\145\x71\165\145\x73\164\x2e\40\122\x65\164\165\162\156\x69\x6e\147\40\165\163\x65\x72");
return $user;
goto qrc;
YWc:
MO2f_Utility::mo2f_debug_file("\101\112\101\x58\40\162\145\161\x75\x65\x73\x74");
$b1 = array("\x6e\157\164\x69\x63\145" => "\74\144\151\166\x20\x73\x74\171\x6c\x65\75\42\142\157\162\144\145\x72\55\x6c\145\x66\x74\72\63\160\170\40\163\x6f\x6c\151\x64\x20\x23\144\x63\63\x32\x33\x32\x3b\42\x3e\x26\x6e\142\x73\160\73\x49\x6e\166\x61\x6c\151\x64\40\125\163\145\162\40\x43\162\x65\x64\145\x6e\164\x69\x61\154\x73");
wp_send_json_success($b1);
qrc:
AuM:
if (!($GLOBALS["\x70\141\147\145\156\x6f\x77"] == "\167\160\x2d\x6c\157\147\151\x6e\56\160\150\160" && isset($_POST["\155\157\x5f\167\x6f\157\143\157\x6d\x6d\145\x72\x63\x65\137\x6c\157\x67\x69\156\137\160\162\x6f\155\x70\x74"]))) {
goto G9g;
}
MO2f_Utility::mo2f_debug_file("\125\156\x61\x75\x74\x68\x6f\x72\x69\x7a\145\x64\40\x41\x63\x63\145\x73\x73");
return new WP_Error("\x55\x6e\x61\165\164\150\x6f\x72\x69\172\x65\144\40\x41\x63\143\145\x73\163\x2e", "\74\x73\x74\x72\x6f\156\147\x3e\105\x52\x52\117\122\74\57\163\x74\162\157\x6e\147\x3e\72\x20\x41\x63\143\x65\163\163\40\104\x65\x6e\x69\145\144\56");
G9g:
if (defined("\130\x4d\114\x52\120\x43\x5f\x52\x45\121\x55\x45\123\124") && XMLRPC_REQUEST) {
goto bKR;
}
MO2f_Utility::mo2f_debug_file("\x58\115\x4c\x52\120\x43\40\x6e\157\x74\40\x65\156\x61\x62\x6c\145\x64");
MO2f_Utility::mo2f_debug_file("\x63\141\154\x6c\151\156\147\40\x77\x70\137\x61\165\164\150\145\x6e\164\151\x63\x61\x74\145\x5f\165\163\x65\x72\x6e\x61\x6d\145\137\x70\x61\x73\163\x77\157\x72\x64");
MO2f_Utility::mo2f_debug_file("\44\x75\163\x65\x72\x6e\141\x6d\x65");
MO2f_Utility::mo2f_debug_file(print_r($Sz, true));
$OZ = wp_authenticate_username_password($user, $Sz, $q9);
if (!get_site_option("\x6d\x6f\62\x66\137\x73\145\x73\x73\163\x69\157\156\137\x72\145\163\x74\162\x69\x63\x74\x69\x6f\156")) {
goto kW8;
}
MO2f_Utility::mo2f_debug_file("\151\156\x20\x6c\157\x67\151\x6e\x20\x73\145\163\163\151\x6f\156\x20\155\141\156\x61\147\145\x6d\x65\156\x74\40\146\154\x6f\167");
$u8 = get_site_option("\x6d\x6f\62\x66\137\x6d\141\170\x69\155\x75\155\x5f\141\154\x6c\157\167\145\144\137\x73\x65\163\163\x69\x6f\156", 1);
MO2f_Utility::mo2f_debug_file("\x24\x73\x65\x73\163\x69\x6f\156\x5f\141\x6c\x6c\157\167\145\x64");
MO2f_Utility::mo2f_debug_file(print_r($u8, true));
$pW = WP_Session_Tokens::get_instance($OZ->ID);
MO2f_Utility::mo2f_debug_file("\x24\x73\x65\x73\x73\x69\x6f\156\x5f\144\x65\x74\x61\x69\154\x73");
MO2f_Utility::mo2f_debug_file(print_r($pW, true));
$Qn = count($pW->get_all());
MO2f_Utility::mo2f_debug_file("\x24\163\x65\x73\163\151\157\156\137\x63\157\x75\156\x74");
MO2f_Utility::mo2f_debug_file(print_r($Qn, true));
if (!($Qn >= (int) $u8)) {
goto Adi;
}
MO2f_Utility::mo2f_debug_file("\44\163\x65\x73\163\151\157\156\137\143\157\x75\156\x74\x20\76\x3d\x20\50\x69\156\x74\x29\40\44\x73\x65\x73\163\x69\157\156\137\x61\154\154\x6f\167\x65\x64");
$PO = get_site_option("\x6d\x6f\62\x66\x5f\163\x65\163\163\151\x6f\156\x5f\x61\x6c\154\157\x77\145\144\137\164\x79\160\x65");
if ($PO) {
goto m9S;
}
MO2f_Utility::mo2f_debug_file("\163\145\163\163\x69\157\156\x5f\x6c\x69\x6d\151\x74\137\145\x78\x63\x65\145\x64\x65\144");
return new WP_Error("\x73\145\x73\x73\x69\157\156\137\154\151\155\151\164\x5f\145\170\x63\x65\145\x64\x65\x64", __("\131\157\x75\40\x68\141\166\145\x20\x72\x65\x61\143\150\145\144\40\x74\x68\145\40\x6c\x69\x6d\151\x74\40\146\x6f\162\x20\x6d\x61\170\151\x6d\x75\155\x20\143\157\x6e\143\x75\x72\x72\x65\156\x74\x20\163\145\x73\163\151\x6f\156\40\x61\154\x6c\157\x77\x65\144\x2e\x20\120\154\x65\141\163\145\40\154\x6f\147\x6f\x75\164\40\146\162\x6f\155\40\x61\156\157\164\150\x65\x72\x20\163\x65\x73\163\x69\157\156\40\157\x72\40\167\x61\x69\x74\40\x66\157\x72\x20\151\x74\x20\164\157\40\145\170\x70\151\162\145", "\x6d\x69\x6e\151\x6f\x72\141\156\x67\145\55\62\55\146\x61\x63\x74\x6f\162\x2d\141\x75\164\150\x65\156\164\x69\143\141\164\x69\157\x6e"));
goto gsR;
m9S:
MO2f_Utility::mo2f_debug_file("\x24\163\145\x73\163\x69\157\x6e\137\x61\143\x74\151\x6f\x6e");
MO2f_Utility::mo2f_debug_file(print_r($PO, true));
$pn = WP_Session_Tokens::get_instance($OZ->ID);
MO2f_Utility::mo2f_debug_file("\x24\x70\162\x65\x76\151\x6f\x75\x73\x5f\x73\145\x73\163\151\157\x6e\x5f\x64\145\x74\x61\x69\x6c\x73");
MO2f_Utility::mo2f_debug_file(print_r($pn, true));
$xo = $pn->destroy_all();
MO2f_Utility::mo2f_debug_file("\x24\162\x65\163\165\154\x74");
MO2f_Utility::mo2f_debug_file(print_r($xo, true));
gsR:
Adi:
kW8:
if (is_wp_error($OZ)) {
goto hO0;
}
MO2f_Utility::mo2f_debug_file("\x73\x69\x67\156\x20\151\x6e\x20\163\165\143\143\145\163\x73");
global $aq;
$Hl = true;
delete_transient("\x6d\x6f\x32\146\137\145\x6e\141\142\x6c\145\x5f\154\157\x67\x69\156");
MO2f_Utility::mo2f_debug_file("\125\163\145\x72\156\x61\155\x65\40\141\156\144\x20\x70\141\x73\x73\x77\157\162\144\40\40\166\141\x6c\x69\x64\141\x74\145\x20\163\165\143\143\145\x73\x73\x66\x75\x6c\154\171" . "\125\163\x65\x72\x5f\x49\x50\55" . $ce->get_client_ip() . "\x20\125\163\x65\162\137\x49\144\55" . $OZ->ID . "\x20\105\155\141\x69\x6c\55" . $OZ->user_email);
$d0 = isset($_POST["\163\145\163\163\x69\157\x6e\x5f\x69\x64"]) ? sanitize_text_field($_POST["\163\x65\x73\163\x69\157\156\137\151\144"]) : null;
$kO = isset($_REQUEST["\x72\x65\144\151\162\145\x63\x74\137\x74\157"]) ? esc_url_raw($_REQUEST["\x72\x65\x64\151\x72\x65\x63\164\x5f\x74\x6f"]) : null;
$aV = isset($_POST["\155\151\x6e\x69\157\162\x61\156\x67\x65\137\x72\142\141\x5f\141\164\x74\x72\x69\142\165\x72\145\163"]) ? $_POST["\155\151\156\x69\x6f\x72\x61\156\147\145\x5f\x72\x62\141\137\141\x74\164\162\x69\x62\165\x72\145\x73"] : null;
$np = $aq->get_user_detail("\155\157\x32\x66\x5f\143\157\x6e\x66\151\147\165\x72\x65\144\137\x32\x46\101\137\155\x65\x74\x68\157\x64", $OZ->ID);
$WY = array("\x4d\x4f\102\x49\114\x45\40\x41\125\x54\110\105\116\124\x49\x43\x41\124\111\x4f\116", "\120\125\x53\110\40\x4e\x4f\x54\x49\106\x49\103\x41\124\111\x4f\x4e\123", "\123\x4f\106\124\x20\x54\117\x4b\x45\116");
if (MO2F_IS_ONPREM && $np == "\x53\x65\x63\x75\x72\151\x74\171\x20\x51\x75\145\x73\x74\151\x6f\156\163") {
goto njf;
}
if (MO2F_IS_ONPREM && $np == "\105\155\x61\x69\x6c\x20\126\x65\162\151\x66\x69\143\x61\164\x69\x6f\x6e") {
goto ekB;
}
if (empty($_POST["\x6d\x6f\137\x73\x6f\146\x74\164\x6f\153\x65\x6e"]) && MoWpnsUtility::get_mo2f_db_option("\155\157\62\x66\x5f\x65\x6e\141\142\154\145\137\62\146\x61\x5f\160\x72\157\x6d\160\x74\137\157\156\137\x6c\x6f\x67\151\156\137\160\x61\x67\145", "\163\151\x74\145\137\157\x70\164\151\x6f\156") && $np && !get_site_option("\x6d\157\x32\x66\x5f\162\145\155\145\x6d\x62\x65\162\137\144\x65\x76\x69\143\x65") && ($np == "\107\157\157\147\x6c\145\x20\x41\x75\164\150\x65\156\x74\151\143\141\x74\157\x72" || $np == "\155\x69\x6e\151\117\x72\141\x6e\x67\145\40\x53\x6f\146\x74\x20\124\x6f\x6b\145\156" || $np == "\x41\x75\164\x68\171\x20\x41\x75\164\150\145\156\x74\x69\x63\141\x74\157\x72")) {
goto z6i;
}
$wp = isset($_POST["\x6d\x6f\137\x73\x6f\146\164\x74\x6f\x6b\145\156"]) ? trim($_POST["\155\157\x5f\163\x6f\x66\x74\164\x6f\x6b\145\156"]) : '';
goto UIu;
z6i:
MO2f_Utility::mo2f_debug_file("\x32\106\101\x20\x70\162\x6f\x6d\x70\164\40\x6f\x6e\40\154\x6f\147\151\x6e\40\x69\163\40\145\156\141\142\x6c\x65\144");
if (!isset($_POST["\155\157\137\x77\157\157\143\157\155\155\145\x72\x63\x65\137\154\x6f\x67\151\156\x5f\160\x72\157\155\x70\164"])) {
goto LUG;
}
$this->miniorange_initiate_2nd_factor($OZ, '', '', '');
LUG:
if (MO2f_Utility::get_index_value("\107\x4c\x4f\102\x41\114\123", "\155\157\x32\146\x5f\x69\163\137\x61\x6a\x61\170\x5f\162\x65\161\165\x65\163\x74")) {
goto DLm;
}
return new WP_Error("\157\x6e\x65\137\x74\151\x6d\x65\x5f\160\141\163\x73\x63\157\x64\x65\x5f\145\155\160\164\x79", "\74\x73\x74\162\157\156\x67\x3e\105\122\122\x4f\x52\74\x2f\163\164\162\x6f\156\147\76\x3a\x20\x50\x6c\x65\141\x73\x65\x20\x65\156\164\x65\162\x20\164\150\x65\x20\117\x6e\145\x20\124\151\155\145\40\120\x61\163\163\x63\157\144\145\x2e");
goto bJI;
DLm:
$b1 = array("\x6e\x6f\x74\151\143\x65" => "\x3c\x64\x69\x76\x20\x73\164\171\x6c\145\75\42\x62\157\x72\x64\145\162\x2d\x6c\145\146\x74\x3a\x33\160\x78\x20\x73\157\154\x69\x64\40\x23\144\x63\63\62\x33\x32\73\42\x3e\x26\156\x62\x73\160\73\x20\x50\x6c\145\141\x73\145\x20\145\156\x74\x65\x72\40\164\150\x65\x20\x4f\x6e\x65\40\x54\151\155\x65\40\x50\x61\163\x73\x63\x6f\144\145");
wp_send_json_success($b1);
bJI:
UIu:
$aV = isset($_POST["\x6d\x69\156\x69\x6f\x72\x61\156\147\x65\137\162\x62\x61\137\141\164\x74\x72\151\142\165\x72\x65\x73"]) ? $_POST["\x6d\x69\156\x69\157\162\x61\x6e\147\x65\137\162\142\x61\x5f\x61\x74\x74\x72\x69\142\x75\162\145\163"] : null;
$d0 = isset($_POST["\x73\x65\163\163\151\x6f\x6e\x5f\151\144"]) ? sanitize_text_field($_POST["\163\x65\163\163\151\x6f\x6e\137\151\x64"]) : null;
$kO = isset($_REQUEST["\162\145\x64\x69\x72\x65\x63\164\x5f\164\x6f"]) ? esc_url_raw($_REQUEST["\x72\x65\x64\151\x72\145\143\x74\137\x74\x6f"]) : null;
if (!is_null($d0)) {
goto hzF;
}
$d0 = $this->create_session();
hzF:
MO2f_Utility::mo2f_debug_file("\x63\x61\x6c\154\151\156\x67\40\x6d\x69\156\151\157\162\141\156\147\145\137\151\156\151\164\151\141\x74\145\x5f\62\x6e\144\x5f\x66\141\143\164\157\162\40\x61\x66\x74\x65\x72\x20\x73\x75\x63\143\145\163\x73");
$wX = $this->miniorange_initiate_2nd_factor($OZ, $aV, $kO, $wp, $d0, $Hl);
MO2f_Utility::mo2f_debug_file("\x24\x65\x72\x72\157\162");
MO2f_Utility::mo2f_debug_file(print_r($wX, true));
if (!is_wp_error($wX)) {
goto N6b;
}
MO2f_Utility::mo2f_debug_file("\151\164\40\x69\163\40\167\160\40\145\162\162\157\162");
return $wX;
N6b:
return $wX;
goto KSv;
njf:
MO2f_Utility::mo2f_debug_file("\111\x6e\x69\x74\x69\x61\164\151\x6e\147\40\62\x6e\x64\40\x66\141\143\x74\157\x72\40\x66\x6f\x72\x20\113\102\x41" . "\125\x73\145\162\137\x49\x50\x2d" . $ce->get_client_ip() . "\x20\125\163\145\x72\x5f\111\x64\x2d" . $OZ->ID . "\40\x45\x6d\141\151\x6c\55" . $OZ->user_email);
$this->miniorange_initiate_2nd_factor($OZ, $aV, $kO, '', $d0, $Hl);
goto KSv;
ekB:
MO2f_Utility::mo2f_debug_file("\111\x6e\x69\164\x69\141\164\x69\x6e\147\40\62\x6e\144\40\146\x61\x63\x74\x6f\162\40\146\x6f\x72\40\145\155\141\151\154\x20\166\145\x72\x69\x66\151\143\x61\x74\151\157\x6e" . "\x55\x73\x65\x72\x5f\x49\x50\x2d" . $ce->get_client_ip() . "\x20\125\163\145\x72\137\x49\144\x2d" . $OZ->ID . "\x20\105\x6d\x61\x69\x6c\55" . $OZ->user_email);
$this->miniorange_initiate_2nd_factor($OZ, $aV, $kO, null, $d0, $Hl);
KSv:
goto th4;
hO0:
MO2f_Utility::mo2f_debug_file("\127\120\x20\105\122\x52\117\x52");
if (MO2f_Utility::get_index_value("\x47\114\117\102\x41\114\x53", "\155\x6f\x32\x66\137\151\163\x5f\141\x6a\x61\170\x5f\x72\x65\161\x75\x65\x73\164")) {
goto BeS;
}
MO2f_Utility::mo2f_debug_file("\x4e\x4f\124\40\101\x4a\x41\130\x20\x52\x45\121\125\105\x53\x54");
$OZ->add("\x69\x6e\x76\x61\154\151\x64\x5f\x75\x73\x65\x72\x6e\141\x6d\145\x5f\160\141\x73\163\x77\157\x72\144", "\x3c\163\164\162\x6f\x6e\x67\x3e" . __("\x45\122\122\x4f\x52", "\x6d\151\x6e\x69\x6f\162\141\156\x67\145\x2d\62\55\146\x61\x63\x74\x6f\x72\x2d\x61\165\164\x68\145\x6e\164\x69\x63\x61\164\x69\157\x6e") . "\x3c\x2f\163\x74\162\157\x6e\x67\76\x3a\x20" . __("\111\156\166\x61\154\151\144\40\125\x73\145\x72\x6e\x61\155\x65\40\x6f\x72\x20\x70\141\163\163\167\x6f\x72\x64\x2e"), "\x6d\151\156\151\157\x72\x61\x6e\x67\x65\55\x32\x2d\x66\141\x63\x74\157\162\x2d\141\165\x74\x68\145\156\x74\151\x63\141\x74\x69\157\156");
MO2f_Utility::mo2f_debug_file("\x49\156\166\x61\x6c\x69\144\x20\x75\163\145\162\156\141\155\145\x20\141\x6e\x64\x20\x70\x61\x73\x73\x77\157\162\144\56" . "\125\x73\x65\x72\137\111\x50\x2d" . $ce->get_client_ip());
return $OZ;
goto Brq;
BeS:
MO2f_Utility::mo2f_debug_file("\x41\x4a\x41\130\40\122\105\121\x55\x45\x53\x54");
$b1 = array("\156\157\x74\x69\143\145" => "\x3c\144\x69\166\40\163\x74\171\x6c\x65\x3d\x22\142\157\162\144\x65\x72\55\154\145\x66\164\x3a\x33\x70\x78\x20\163\x6f\x6c\x69\144\40\x23\144\x63\x33\62\63\62\x3b\x22\x3e\x26\156\142\x73\x70\x3b\x20\111\156\166\141\x6c\151\144\x20\x55\x73\x65\x72\x20\x43\x72\145\144\x65\x6e\x74\151\x61\x6c\163");
wp_send_json_success($b1);
Brq:
th4:
goto F3y;
bKR:
MO2f_Utility::mo2f_debug_file("\x58\x4d\114\x52\120\x43\40\145\x6e\141\142\x6c\x65\x64");
$OZ = wp_authenticate_username_password($user, $Sz, $q9);
if (is_wp_error($OZ)) {
goto kWV;
}
return $OZ;
goto taK;
kWV:
$this->error = new IXR_Error(403, __("\x42\141\144\x20\154\x6f\147\x69\156\57\160\x61\163\163\x20\143\x6f\155\x62\151\156\141\x74\x69\157\156\56"));
return false;
taK:
$OZ->errors["\151\x6e\143\157\162\162\x65\143\x74\x5f\160\141\x73\163\x77\x6f\162\x64"][0] = "\74\x73\x74\162\x6f\x6e\x67\76" . __("\105\122\122\117\x52", "\x6d\151\156\x69\157\162\141\156\x67\x65\x2d\62\55\146\141\x63\164\x6f\x72\55\141\165\x74\x68\x65\x6e\164\151\143\141\164\x69\157\156") . "\74\57\x73\x74\x72\x6f\156\147\76\x3a\x20" . __("\x59\x6f\165\40\x68\141\x76\145\40\x65\x6e\164\x65\162\x65\x64\40\141\156\40\151\156\x76\x61\154\x69\144\40\x6c\x6f\x67\151\156\56", "\155\151\156\x69\x6f\x72\141\156\x67\x65\x2d\62\x2d\x66\141\x63\164\x6f\x72\x2d\141\165\x74\150\x65\x6e\164\151\x63\141\164\151\157\x6e");
$OZ->errors["\151\x6e\x76\x61\154\x69\x64\x5f\x75\x73\145\162\x6e\141\155\145"][0] = "\x3c\x73\164\x72\157\x6e\147\x3e" . __("\105\122\x52\117\122", "\x6d\x69\x6e\x69\x6f\162\141\156\x67\x65\x2d\x32\55\x66\141\143\164\157\x72\x2d\x61\165\164\x68\x65\x6e\x74\x69\143\x61\164\151\157\156") . "\74\57\x73\x74\162\x6f\156\147\76\x3a\40" . __("\131\157\x75\x20\150\x61\x76\145\x20\145\x6e\164\x65\162\x65\144\x20\x61\x6e\40\x69\x6e\166\x61\x6c\151\x64\40\x6c\157\147\151\x6e\56", "\x6d\x69\156\151\157\162\x61\x6e\x67\145\x2d\62\55\146\x61\x63\x74\157\162\55\141\165\164\150\x65\x6e\164\x69\143\x61\x74\151\x6f\x6e");
F3y:
}
public function mo2f_is_new_user($OZ)
{
if (get_user_meta($OZ->ID, "\155\x6f\62\x66\137\165\x73\145\162\137\154\x6f\x67\x69\156\137\x73\164\x61\164\x75\163", true)) {
goto TeM;
}
return true;
goto Nb8;
TeM:
return false;
Nb8:
}
public function mo2f_is_grace_period_expired($OZ)
{
$Jl = get_user_meta($OZ->ID, "\x6d\x6f\x32\146\x5f\x67\x72\x61\143\145\x5f\160\x65\162\x69\x6f\144\x5f\x73\x74\141\x74\x75\163", true);
$qg = get_option("\x6d\157\x32\x66\137\x67\x72\141\x63\x65\x5f\160\145\x72\151\x6f\x64\x5f\x76\x61\x6c\x75\145");
if (get_option("\155\x6f\x32\146\137\x67\x72\x61\x63\145\137\160\x65\x72\x69\x6f\144\137\x74\x79\x70\x65") === "\150\x6f\165\162\x73") {
goto MMC;
}
$qg = $qg * 24 * 60 * 60;
goto e7m;
MMC:
$qg = $qg * 60 * 60;
e7m:
$aU = $qg + $Jl;
$xy = strtotime(current_datetime()->format("\150\72\151\x61\40\115\x20\x64\x20\x59"));
return $aU <= $xy;
}
function display_email_verification($ql, $fg, $ux)
{
$pP = wp_upload_dir();
$Uf = get_site_option("\155\x6f\62\x66\137\145\156\141\x62\x6c\x65\137\x63\165\163\x74\157\155\137\x70\x6f\x77\145\162\145\144\x62\171") ? $pP["\x62\141\x73\x65\165\162\154"] . "\x2f\x6d\151\x6e\151\157\162\141\x6e\147\145\57\x63\x75\163\x74\x6f\155\56\160\156\147" : plugin_dir_url(dirname(dirname(__FILE__))) . "\151\156\143\x6c\x75\144\x65\163\57\151\155\x61\x67\x65\x73\57\155\x69\x6e\x69\x6f\162\141\156\x67\145\x5f\154\157\147\x6f\x2e\x70\x6e\x67";
echo "\x3c\x64\x69\166\x20\x20\x73\x74\x79\154\x65\x3d\x27\x62\141\143\x6b\147\x72\157\165\156\144\x2d\143\157\154\x6f\162\x3a\40\43\144\65\x65\x33\144\x39\x3b\x20\x68\x65\151\x67\150\164\x3a\x38\65\x30\160\x78\x3b\x27\x3e\12\x9\11\40\40\x20\x20\74\144\x69\166\40\x73\164\171\154\x65\75\47\x68\145\151\147\x68\x74\72\x33\x35\x30\160\x78\73\40\142\141\143\153\147\162\x6f\165\156\x64\x2d\143\x6f\x6c\157\x72\x3a\40\43\63\x43\x42\x33\67\61\73\40\x62\x6f\162\x64\x65\162\55\x72\x61\x64\x69\x75\163\x3a\x20\62\160\170\73\40\160\141\144\x64\151\x6e\x67\72\62\45\x3b\47\x3e\xa\11\x9\40\x20\40\40\x20\40\40\x20\x3c\x64\x69\x76\40\x63\154\x61\x73\x73\x3d\47\155\x6f\x32\x66\137\164\141\x6d\160\154\141\x74\x65\137\154\141\x79\x6f\165\164\x27\40\x73\x74\x79\154\145\x3d\47\142\x61\x63\x6b\147\162\x6f\x75\x6e\144\55\143\157\154\157\162\x3a\x20\43\146\x66\146\x66\146\x66\73\x62\x6f\x72\x64\x65\x72\x2d\162\141\x64\x69\x75\x73\72\x20\x35\x70\170\73\x62\157\170\55\163\x68\141\144\157\167\72\x20\x30\x20\65\160\170\x20\x31\x35\160\x78\40\x72\x67\142\x61\50\x30\54\60\x2c\x30\54\56\x35\x29\x3b\40\x77\151\x64\x74\150\x3a\70\x35\x30\160\170\x3b\x68\145\151\147\x68\164\x3a\x33\x35\x30\x70\x78\73\40\141\154\151\147\x6e\55\163\145\154\x66\72\x20\x63\145\156\x74\145\162\73\x20\155\141\x72\147\151\x6e\72\x20\61\70\60\x70\x78\x20\141\165\164\x6f\73\x20\x27\x20\76\12\11\x9\40\x20\40\x20\40\40\40\x20\x20\40\x20\x20\74\x64\x69\x76\40\x73\x74\171\154\145\75\47\164\x65\x78\x74\x2d\141\154\x69\x67\156\x3a\x20\x63\x65\156\164\145\162\x27\x3e\x3c\x69\x6d\147\40\x61\x6c\164\75\x27\x6c\x6f\x67\x6f\47\x20\163\x74\x79\x6c\x65\75\x27\155\141\162\147\151\x6e\x2d\x74\157\160\x3a\x31\60\160\x78\x3b\x20\167\151\x64\164\150\72\141\x75\x74\157\x3b\x20\x6d\x61\170\55\150\x65\151\147\150\164\x3a\61\60\60\160\x78\47\40\x73\x72\x63\75" . $Uf . "\x3e\x3c\x2f\x64\x69\x76\76\12\x9\x9\x20\x20\x20\x20\x20\x20\40\40\40\40\40\x20\x3c\x64\151\x76\x3e\74\150\x72\x3e\74\57\144\151\x76\76\12\12\x9\x9\40\40\40\x20\40\40\x20\40\x20\40\x20\40\74\164\x62\x6f\x64\x79\76\xa\x9\11\40\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\74\164\x72\76\xa\x9\x9\40\x20\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\74\x74\144\76\12\12\x9\x9\x20\x20\40\40\40\40\40\40\40\x20\40\40\40\40\40\x20\x20\40\40\x20\x3c\160\x20\163\x74\171\x6c\145\75\47\155\141\x72\147\x69\x6e\x2d\x74\157\x70\72\60\73\155\141\162\x67\x69\x6e\55\x62\157\164\x74\157\155\x3a\x31\x30\160\x78\x27\x3e\12\11\x9\40\x20\40\40\x20\x20\40\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\74\160\x20\x73\164\171\154\145\75\47\x6d\141\x72\x67\151\x6e\x2d\164\x6f\x70\x3a\x30\73\155\x61\x72\147\x69\156\55\x62\x6f\x74\x74\x6f\x6d\72\x31\60\x70\x78\x27\76\40\74\x68\x31\40\163\164\171\x6c\x65\x3d\x27\143\x6f\154\157\x72\72" . $ux . "\73\x74\x65\x78\x74\x2d\141\x6c\151\147\x6e\x3a\143\x65\156\x74\x65\162\x3b\146\x6f\x6e\164\55\163\x69\172\x65\72\x35\x30\160\170\x27\x3e" . $ql . "\x3c\x2f\150\61\x3e\74\57\x70\x3e\12\x9\x9\x20\40\x20\40\40\x20\x20\x20\x20\40\40\40\40\40\x20\x20\40\x20\40\40\x3c\160\40\163\x74\x79\154\x65\x3d\x27\155\x61\162\x67\151\156\x2d\164\157\x70\x3a\60\x3b\x6d\141\162\x67\x69\x6e\55\142\x6f\164\x74\157\155\72\61\60\160\170\x27\76\xa\x9\x9\40\40\x20\x20\40\40\x20\x20\40\x20\40\x20\40\40\x20\40\40\40\40\x20\74\x70\x20\x73\x74\x79\x6c\145\75\x27\x6d\x61\x72\147\x69\x6e\x2d\164\x6f\x70\72\x30\x3b\x6d\x61\x72\147\151\156\55\142\157\x74\x74\x6f\155\x3a\x31\60\160\x78\73\x74\145\x78\x74\55\141\154\151\147\x6e\72\x63\145\x6e\x74\x65\x72\x27\x3e\74\x68\x32\40\163\x74\x79\154\145\75\47\164\x65\170\x74\x2d\x61\154\x69\x67\x6e\x3a\x63\x65\156\164\145\162\47\76" . $fg . "\x3c\x2f\x68\62\x3e\x3c\57\x70\x3e\xa\11\x9\x20\40\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\40\x20\74\160\40\163\164\171\154\145\x3d\x27\155\x61\x72\147\x69\x6e\55\164\157\x70\72\60\73\155\x61\x72\147\151\x6e\55\x62\x6f\x74\x74\157\155\72\x30\x70\x78\73\x66\157\x6e\x74\55\x73\151\x7a\145\72\61\x31\160\x78\47\76\12\12\x9\x9\40\x20\x20\x20\40\x20\40\40\40\40\x20\40\40\x20\x20\x20\x3c\57\164\144\x3e\xa\11\11\40\40\40\40\x20\x20\40\40\x20\40\40\x20\x3c\57\x74\x72\76\12\xa\11\x9\40\x20\40\x20\40\40\40\40\x3c\57\x64\x69\x76\76\12\x9\x9\40\x20\40\40\x3c\57\144\x69\166\76\xa\x9\11\74\57\x64\151\166\x3e";
}
function mo_2_factor_enable_jquery_default_login()
{
wp_enqueue_script("\152\161\165\x65\162\x79");
}
function miniorange_pass2login_footer_form()
{
echo "\11\x9\x3c\163\143\162\151\160\164\76\12\11\11\x9\163\x65\x74\124\151\x6d\x65\x6f\165\x74\50\xa\x9\11\x9\x9\50\x29\75\x3e\40\173\x20\x6a\x51\x75\x65\x72\171\x28\x64\x6f\x63\165\155\145\156\x74\51\x2e\162\145\x61\144\x79\x28\x66\x75\156\143\x74\x69\x6f\156\x20\50\x29\40\x7b\12\x9\11\x9\x9\11\xa\11\x9\11\x9\x6a\x51\165\x65\162\x79\50\47\43\x6d\x69\x6e\x69\157\162\x61\156\147\145\x5f\x72\x62\141\x5f\x61\164\x74\x72\151\142\165\162\145\163\47\x29\x2e\166\141\154\50\112\x53\117\x4e\x2e\163\x74\162\x69\156\147\x69\146\x79\x28\x72\142\141\101\x74\164\162\151\x62\x75\164\145\x73\x2e\141\x74\164\162\x69\x62\165\164\145\x73\x29\51\73\12\xa\x9\11\11\x9\x69\x66\x20\x28\144\157\x63\x75\x6d\x65\156\x74\x2e\147\x65\x74\x45\154\145\155\145\156\164\102\171\111\144\x28\47\x6c\x6f\x67\151\x6e\x66\x6f\162\x6d\47\x29\40\41\x3d\x20\x6e\165\x6c\154\x29\40\173\12\x9\11\11\x9\11\x6a\x51\x75\145\x72\x79\50\x27\43\154\x6f\147\151\x6e\146\157\162\155\47\51\x2e\x6f\x6e\50\x27\163\x75\142\x6d\x69\x74\x27\54\40\x66\165\156\143\x74\x69\157\156\x20\50\145\x29\40\173\12\11\11\11\11\11\x9\152\x51\165\x65\x72\171\x28\x27\43\155\x69\x6e\151\x6f\x72\x61\156\x67\x65\x5f\x72\x62\141\x5f\x61\x74\x74\x72\x69\142\x75\162\145\163\x27\51\56\x76\141\154\x28\x4a\x53\117\x4e\56\x73\164\162\x69\156\x67\151\x66\x79\x28\x72\x62\x61\101\x74\164\x72\151\x62\x75\x74\x65\163\56\x61\164\164\x72\151\x62\165\x74\x65\x73\x29\51\73\xa\x9\x9\11\x9\x9\175\51\73\12\11\x9\x9\11\175\x20\x65\154\163\145\x20\173\xa\11\11\11\11\x9\151\146\x20\x28\x64\157\143\x75\155\145\156\x74\56\147\145\164\105\154\145\x6d\x65\x6e\164\163\102\x79\103\x6c\x61\x73\163\x4e\x61\x6d\x65\x28\47\x6c\x6f\x67\x69\156\47\51\40\x21\75\40\156\165\154\154\51\40\x7b\xa\11\x9\11\11\x9\11\x6a\x51\x75\x65\x72\x79\50\47\56\154\157\x67\151\156\x27\51\x2e\x6f\156\x28\47\163\165\142\x6d\151\164\47\54\40\146\165\156\143\164\151\x6f\x6e\x20\x28\x65\51\x20\x7b\12\11\11\x9\x9\x9\x9\x9\152\121\165\x65\162\171\x28\47\x23\155\151\x6e\151\x6f\162\x61\156\147\x65\x5f\162\142\141\137\x61\x74\164\162\151\x62\165\x72\x65\163\47\51\56\166\x61\154\50\x4a\123\x4f\x4e\56\x73\x74\162\151\x6e\147\151\x66\x79\50\x72\142\141\101\x74\x74\x72\151\142\165\164\x65\x73\x2e\x61\x74\x74\x72\151\142\165\164\145\x73\51\x29\73\12\11\x9\11\11\11\x9\175\x29\x3b\xa\11\x9\11\x9\11\175\12\x9\x9\x9\x9\175\12\11\x9\11\xa\11\x9\x9\175\x29\x7d\54\x31\60\x30\60\51\x3b\12\xa\x9\x9\74\57\x73\x63\162\x69\x70\x74\76\12\11\11";
}
}
Function Calls
None |
Stats
MD5 | 4db07efbae1b5af43f88dea7cb8a9bf2 |
Eval Count | 0 |
Decode Time | 261 ms |