diff --git a/Layout/default/UserProfile/Form.php b/Layout/default/UserProfile/Form.php index e97e0cca6..4c96dcd37 100644 --- a/Layout/default/UserProfile/Form.php +++ b/Layout/default/UserProfile/Form.php @@ -138,7 +138,7 @@ if ($twofa == 0) { $.getJSON(" 'sendcode', 'twofactor' => $twofa]) ?>", {}).done(function (data) { }).fail(function (jqxhr, textStatus, error) { - window.location.href = "/Dashboard"; + window.location.href = ""; }); } } @@ -147,7 +147,7 @@ if ($twofa == 0) { $.getJSON(" 'sendcode', 'twofactor' => $twofa]) ?>", {}).done(function (data) { $("#new-authcode").hide(0).delay(5000).show(0); }).fail(function (jqxhr, textStatus, error) { - window.location.href = "/Dashboard"; + window.location.href = ""; }); }); });