79175099

Date: 2024-11-10 14:53:14
Score: 2
Natty:
Report link

userSchema.pre("save", async function(next){ if(!this.isModified("password")) return next(); this.password = await bcrypt.hash(this.password,10); })

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Darshan Domadiya