This pull request introduces a centralized approach to password hashing by refactoring the existing code to use a new utility function. This change aims to improve code maintainability and ensure consistency in password hashing across different parts of the application.
Summary
Introduced a new utility function hashPassword in utils/passwordUtil.js for hashing passwords.
Replaced direct calls to bcrypt.hash in routes/auth.routes.js and routes/profile.routes.js with calls to the new hashPassword utility function.
Added the import statement for hashPassword in both auth.routes.js and profile.routes.js to utilize the new utility function.
Fixes #113.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request introduces a centralized approach to password hashing by refactoring the existing code to use a new utility function. This change aims to improve code maintainability and ensure consistency in password hashing across different parts of the application.
Summary
hashPassword
inutils/passwordUtil.js
for hashing passwords.bcrypt.hash
inroutes/auth.routes.js
androutes/profile.routes.js
with calls to the newhashPassword
utility function.hashPassword
in bothauth.routes.js
andprofile.routes.js
to utilize the new utility function.Fixes #113.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.