Anushkabh / CMS-iGOT-Karmyogi

https://cms-i-got-karmyogi.vercel.app
0 stars 1 forks source link

[3] - [Backend] - Route for Login, Register, User Management Added #1

Closed ashishsoniii closed 5 months ago

ashishsoniii commented 5 months ago

Routes in this PR:

authRoutes.js

  1. Super Admin Registration
  2. User Registration by Super Admin

userManagementRoutes.js

  1. User Login
  2. Get All Users
  3. Get User by ID
  4. Update User by ID
  5. Delete User by ID
  6. Update other User Password by super Admin

Middleware: Super Admin Authentication Middleware

Security: Passwords are hashed using bcrypt before storing in the database, JWT tokens are generated and verified for authentication.