Skip to content
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

admin login to control panel #27

Open
InassTubail opened this issue Aug 1, 2018 · 0 comments
Open

admin login to control panel #27

InassTubail opened this issue Aug 1, 2018 · 0 comments

Comments

@InassTubail
Copy link
Contributor

admin can login on the /admin route

  • use bcryptjs to hash the password and compare it with the secret to ensure security.
  • create a token using JWT
  • fetch the admin username and password from the database and compare it with the entered ones to verify the admin and login if it matched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant