Skip to content

Conversation

Anshv784
Copy link
Contributor

@Anshv784 Anshv784 commented Sep 7, 2025

Fixes #49

Problem:

  • Passwords were hashed without an explicit salt, making them weaker.

Solution:

  • Added bcrypt salt (10 rounds) to the signUp function.
  • Updated user.save() to use await for proper error handling.
  • Password verification remains secure with compareSync.

Copy link

vercel bot commented Sep 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
blog-app-using-mern-stack Error Error Sep 7, 2025 5:02pm

Copy link
Owner

@khushi2706 khushi2706 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please resolve conflict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lack of salt in the password generation
2 participants