changed mock credentials

This commit is contained in:
2025-09-22 16:55:01 +03:00
parent 00e3fb0b57
commit f280ad9843
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ const Login = () => {
} }
// TODO: request to API - login // TODO: request to API - login
if ((username === "admin" && password === "1234") || (username === "a" && password === "a")) { if (username === "a" && password === "a") {
const token = "todo.jwt.token"; const token = "todo.jwt.token";
setToken(token); setToken(token);
navigate(redirectPath, { replace: true }); navigate(redirectPath, { replace: true });

View File

@ -33,7 +33,7 @@ const Register = () => {
} }
// TODO: request to API - register // TODO: request to API - register
if (username === "cat" && password === "cat") { if (username === "user" && password === "user") {
const token = "newusertodo.jwt.token"; const token = "newusertodo.jwt.token";
setToken(token); setToken(token);
navigate(redirectPath, { replace: true }); navigate(redirectPath, { replace: true });