ACM-Thapar / ACM-Thapar/ACM-official-website
[REFACTOR]:Shift password hashing and token generation inside the user model from controllers/auth_post.js
Ouverte
enhancement
node backend
- Langage dominant
- JavaScript
- Étoiles
- 1
- Forks
- 12
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
After the backend is complete shift the password hashing as a 'pre' save function on the user model .Also the jwt.sign method as a general method on the user model instead of having the code inside the controller.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.