-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added userExist middleware #122
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Kindly mention the issue number and resolve conflicts |
router.route("/login").post(loginUser); | ||
router.route("/register").get(getUser); | ||
.post(registerLimiter, registerValidationRules, registerUser) | ||
.get(userExists, getUser); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
.post(registerLimiter, registerValidationRules, registerUser) | ||
.get(userExists, getUser); | ||
|
||
router.route("/login").post(userExists, loginUser); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
const userExists = async (req, res, next) => { | ||
const { email } = req.body; | ||
try { | ||
const userExist = User.findOne({ email }); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
#77