Add Feedback at the registration process (fix #78) #79
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