Fix a little bug v0.0.2

This commit is contained in:
TropiiDev 2025-04-21 22:43:57 -04:00
parent cb7d17a47e
commit e3377b874e

View File

@ -54,6 +54,10 @@ const validateUser = async (parsedJson) => {
// save a cookie
const cookieText = `token=${token},type=${type},expires_days=${expiresInDays}`;
setCookie(token, type, expiresInDays);
// return to home. at a later point set it to the user page
window.location.href = '/';
}));
} else if (parsedJson.detail == "Invalid password") {
setTooltip("error", "Invalid password");