bugfix createaccount backend feedback message
This commit is contained in:
@@ -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) {
|
||||
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.status(status.OK).send();
|
||||
return res.status(status.OK).send("account successfully created");
|
||||
});
|
||||
} else {
|
||||
res.status(status.BAD_REQUEST).send("invalid data supplied");
|
||||
|
||||
Reference in New Issue
Block a user