mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
feat: add validation for login
This commit is contained in:
1 parent
fc6ac11c60
commit
203114cd5e
6 files changed
+44
-24
No files matched your search
@@ -6,8 +6,8 @@ export function noError(req, res, next) {
|
||||
next()
|
||||
return
|
||||
}
|
||||
console.log(result.array())
|
||||
res.status(400).json({
|
||||
message: 'Validation failed',
|
||||
errors: result.array(),
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user