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, type: String,
required: true, required: true,
trim: true, trim: true,
min: 8,
select: false,
}, },
passwordChangedAt: Date, passwordChangedAt: Date,
passwordResetToken: String, passwordResetToken: String,