UserToken Methoden static hinzugefügt
Bug bei Passwortlängencheck gefixt JS Request URLs auf getUrl umgebaut 2FA Code wird bei eingabe nun üngiltig
This commit is contained in:
@@ -138,7 +138,7 @@ if ($twofa == 0) {
|
||||
|
||||
$.getJSON("<?= self::getUrl("UserProfile", "api", ['do' => 'sendcode', 'twofactor' => $twofa]) ?>", {}).done(function (data) {
|
||||
}).fail(function (jqxhr, textStatus, error) {
|
||||
window.location.href = "/Dashboard";
|
||||
window.location.href = "<?= self::getUrl("Dashboard") ?>";
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -147,7 +147,7 @@ if ($twofa == 0) {
|
||||
$.getJSON("<?= self::getUrl("UserProfile", "api", ['do' => '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 = "<?= self::getUrl("Dashboard") ?>";
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user