While reviewing the UserController, I noticed two related concerns:
- bcryptjs is not listed as a dependency in the package.json file, despite being imported.
- bcryptjs is not being used to hash sensitive data like the badgeNumber of police officers, which should be treated confidentially.
Suggested Fixes:
1.Install bcryptjs:
npm install bcryptjs
- Hash badgeNumber in registration controller