ADD: min and select attribute for password
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user