Added login feedback in the backend

This commit is contained in:
cami 2021-07-04 23:35:20 +02:00
parent d073c8ea2e
commit 160e4d936e
2 changed files with 8 additions and 4 deletions

View file

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