remove old page, new style for loader, increase debounce time

This commit is contained in:
Michael Freno
2025-12-28 23:21:47 -05:00
parent 4743f1deaf
commit 692f568fd4
4 changed files with 40 additions and 27 deletions

View File

@@ -169,7 +169,7 @@ export default function LoginPage() {
const result = await response.json();
if (response.ok && result.result?.data) {
navigate("/account");
navigate("/account", { replace: true });
} else {
const errorMsg =
result.error?.message ||
@@ -207,8 +207,7 @@ export default function LoginPage() {
if (response.ok && result.result?.data?.success) {
setShowPasswordSuccess(true);
setTimeout(() => {
navigate(-1); // Go back
window.location.reload(); // Refresh to update session
navigate("/account", { replace: true });
}, 500);
} else {
setShowPasswordError(true);