diff --git a/src/routes/cloudron.js b/src/routes/cloudron.js index a4e7ceabb..97ff6d857 100644 --- a/src/routes/cloudron.js +++ b/src/routes/cloudron.js @@ -122,7 +122,6 @@ function passwordReset(req, res, next) { function setupAccount(req, res, next) { assert.strictEqual(typeof req.body, 'object'); - if (!req.body.email || typeof req.body.email !== 'string') return next(new HttpError(400, 'email must be a non-empty string')); if (!req.body.resetToken || typeof req.body.resetToken !== 'string') return next(new HttpError(400, 'resetToken must be a non-empty string')); if (!req.body.password || typeof req.body.password !== 'string') return next(new HttpError(400, 'password must be a non-empty string')); if (!req.body.username || typeof req.body.username !== 'string') return next(new HttpError(400, 'username must be a non-empty string'));