diff --git a/src/routes/cloudron.js b/src/routes/cloudron.js index 04f077c5a..3f125b783 100644 --- a/src/routes/cloudron.js +++ b/src/routes/cloudron.js @@ -106,7 +106,7 @@ function passwordReset(req, res, next) { users.getByResetToken(req.body.resetToken, function (error, userObject) { if (error) return next(new HttpError(401, 'Invalid resetToken')); - if (!userObject.username) return next(new HttpError(401, 'No username set')); + if (!userObject.username) return next(new HttpError(409, 'No username set')); // setPassword clears the resetToken users.setPassword(userObject.id, req.body.password, function (error) {