mirror of
https://github.com/status-im/codimd.git
synced 2025-01-26 04:48:49 +00:00
lint: lib/auth/email/index.ts
remove unused vars Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
parent
375de57af6
commit
adc0a62acd
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user