Main project structure #3

Closed
Beesquit wants to merge 17 commits from dev into main
44 changed files with 4765 additions and 0 deletions
Showing only changes of commit f280ad9843 - Show all commits

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 });