Added some debug things to get feedback on the frontend after register
This commit is contained in:
parent
19db7f18a5
commit
44e6293e43
1 changed files with 8 additions and 3 deletions
|
@ -22,9 +22,14 @@ export default function Login() {
|
||||||
body: JSON.stringify(opts),
|
body: JSON.stringify(opts),
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
if (response.status === 409) {
|
if (response.status === 409) {
|
||||||
setMessage(response.message)
|
console.log(response);
|
||||||
console.log(message)
|
console.log(
|
||||||
console.log(response)
|
"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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue