Skip to content

Issue: bcryptjs Not Used for Hashing in userController.js #30

@Swapnxll

Description

@Swapnxll

While reviewing the UserController, I noticed two related concerns:

  1. bcryptjs is not listed as a dependency in the package.json file, despite being imported.
  2. 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

  1. Hash badgeNumber in registration controller

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions