Add bcryptjs password hashing lib and AdminUser model
Add passwordHash utility module wrapping bcryptjs for secure password hashing, and AdminUser Mongoose model with username (unique, lowercase), passwordHash, role (admin/staff), and active fields.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>
Showing
app/libs/passwordHash.js
0 → 100644
app/models/AdminUser.js
0 → 100644
| ... | @@ -15,6 +15,7 @@ | ... | @@ -15,6 +15,7 @@ |
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| "async": "^2.0.1", | "async": "^2.0.1", | ||
| "bcryptjs": "^3.0.3", | |||
| "body-parser": "^1.9.3", | "body-parser": "^1.9.3", | ||
| "bunyan": "^1.8.1", | "bunyan": "^1.8.1", | ||
| "chalk": "^0.5.1", | "chalk": "^0.5.1", | ||
| ... | ... |
Please
register
or
sign in
to comment