bugfix createaccount backend feedback message

This commit is contained in:
2020-04-30 22:25:27 +02:00
parent eb01399e04
commit 5bf47622ef

View File

@@ -131,7 +131,7 @@ app.put("/API/user/create", function (req, res) {
connection.query(`INSERT INTO user (deactivated, email, password) values (1, ${email}, ${password})`, function (err, rows) { connection.query(`INSERT INTO user (deactivated, email, password) values (1, ${email}, ${password})`, function (err, rows) {
if (err) if (err)
return res.send(status.INTERNAL_SERVER_ERROR).send("the user seems to exist already - if you think this is an error contact the sys admin"); return res.send(status.INTERNAL_SERVER_ERROR).send("the user seems to exist already - if you think this is an error contact the sys admin");
return res.status(status.OK).send(); return res.status(status.OK).send("account successfully created");
}); });
} else { } else {
res.status(status.BAD_REQUEST).send("invalid data supplied"); res.status(status.BAD_REQUEST).send("invalid data supplied");