Added login feedback in the backend
This commit is contained in:
parent
d073c8ea2e
commit
160e4d936e
2 changed files with 8 additions and 4 deletions
|
@ -17,7 +17,6 @@ export default function Login() {
|
|||
username: username,
|
||||
password: password,
|
||||
};
|
||||
console.log(opts);
|
||||
fetch("/api/login", {
|
||||
method: "post",
|
||||
body: JSON.stringify(opts),
|
||||
|
@ -27,6 +26,7 @@ export default function Login() {
|
|||
if (token.access_token) {
|
||||
login(token);
|
||||
} else {
|
||||
// TODO: add text if the login is not correct
|
||||
console.log("Please type in the correct username / password");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue