-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add admin authentication functionality + Lots of Authentication fixes #94
Conversation
router.post('/login', getAdminByEmail, signAdminToken, (req, res) => { | ||
res.status(200).json({status: 'success'}); | ||
}); | ||
router.post('/login', getAdminByEmail, authenticateAdmin, signAdminToken, sendSuccessResponse); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
router.post('/', createVendor, (req, res) => { | ||
res.status(200).json({status: 'success'}); | ||
}); | ||
router.post('/', createVendor, sendSuccessResponse); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should probably remove that log.
closes #92 #91
This pull request adds the functionality to authenticate admin users. It includes the following changes:
Added admin authentication service and repository
Added admin login route and controller
Added admin authentication middleware
Added admin authentication tests