diff --git a/lib/auth/email/index.ts b/lib/auth/email/index.ts index 79851982..717c0d80 100644 --- a/lib/auth/email/index.ts +++ b/lib/auth/email/index.ts @@ -35,7 +35,7 @@ passport.use(new LocalStrategy({ })) if (config.allowEmailRegister) { - emailAuth.post('/register', urlencodedParser, async function (req, res, next) { + emailAuth.post('/register', urlencodedParser, async function (req, res) { if (!req.body.email || !req.body.password) return response.errorBadRequest(req, res) if (!validator.isEmail(req.body.email)) return response.errorBadRequest(req, res) try {