ADD: min and select attribute for password
This commit is contained in:
@@ -21,6 +21,8 @@ const userSchema = new mongoose.Schema(
|
||||
type: String,
|
||||
required: true,
|
||||
trim: true,
|
||||
min: 8,
|
||||
select: false,
|
||||
},
|
||||
passwordChangedAt: Date,
|
||||
passwordResetToken: String,
|
||||
|
||||
Reference in New Issue
Block a user