Added some debug things to get feedback on the frontend after register

This commit is contained in:
cami 2021-06-28 04:16:46 +02:00
parent 19db7f18a5
commit 44e6293e43

View file

@ -22,9 +22,14 @@ export default function Login() {
body: JSON.stringify(opts),
}).then((response) => {
if (response.status === 409) {
setMessage(response.message)
console.log(message)
console.log(response)
console.log(response);
console.log(
"Benutzername wird bereits verwendet. Wähle einen Anderen (source: console.log)"
);
let response_json = response.json();
console.log(response_json);
let response_message = response_json.message;
console.log(response_message);
}
});
};