Add Feedback at the registration process (fix #78) #79

Merged
cami merged 12 commits from feature/registerFeedback into main 2021-06-29 23:25:28 +00:00
Showing only changes of commit 44e6293e43 - Show all commits

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