ADD: min and select attribute for password

This commit is contained in:
MohammadHMazarei
2024-12-23 23:09:04 +03:30
parent 548fa8d0e2
commit 4d45b4f205
+2
View File
@@ -21,6 +21,8 @@ const userSchema = new mongoose.Schema(
type: String,
required: true,
trim: true,
min: 8,
select: false,
},
passwordChangedAt: Date,
passwordResetToken: String,