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),
|
||||
}).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);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue