lint: lib/auth/email/index.ts

remove unused vars

Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
Raccoon 2021-06-13 15:07:39 +08:00
parent 375de57af6
commit adc0a62acd
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38

View File

@ -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 {