changed mock credentials
This commit is contained in:
@ -33,7 +33,7 @@ const 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";
|
||||
setToken(token);
|
||||
navigate(redirectPath, { replace: true });
|
||||
|
||||
@ -33,7 +33,7 @@ const Register = () => {
|
||||
}
|
||||
|
||||
// TODO: request to API - register
|
||||
if (username === "cat" && password === "cat") {
|
||||
if (username === "user" && password === "user") {
|
||||
const token = "newusertodo.jwt.token";
|
||||
setToken(token);
|
||||
navigate(redirectPath, { replace: true });
|
||||
|
||||
Reference in New Issue
Block a user