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:
Spitzer_Daniel
2023-08-28 15:33:23 +02:00
parent 28ca65fa6d
commit 2e5fd0b947
+2 -2
View File
@@ -138,7 +138,7 @@ if ($twofa == 0) {
$.getJSON("<?= self::getUrl("UserProfile", "api", ['do' => 'sendcode', 'twofactor' => $twofa]) ?>", {}).done(function (data) { $.getJSON("<?= self::getUrl("UserProfile", "api", ['do' => 'sendcode', 'twofactor' => $twofa]) ?>", {}).done(function (data) {
}).fail(function (jqxhr, textStatus, error) { }).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) { $.getJSON("<?= self::getUrl("UserProfile", "api", ['do' => 'sendcode', 'twofactor' => $twofa]) ?>", {}).done(function (data) {
$("#new-authcode").hide(0).delay(5000).show(0); $("#new-authcode").hide(0).delay(5000).show(0);
}).fail(function (jqxhr, textStatus, error) { }).fail(function (jqxhr, textStatus, error) {
window.location.href = "/Dashboard"; window.location.href = "<?= self::getUrl("Dashboard") ?>";
}); });
}); });
}); });