|
@@ -17,9 +17,8 @@ const UserSchema = new mongoose.Schema(
|
|
|
role: { type: String, enum: ROLES, default: "user" },
|
|
|
securityQuestion: {
|
|
|
type: String,
|
|
|
- required: true,
|
|
|
},
|
|
|
- securityAnswer: { type: String, required: true },
|
|
|
+ securityAnswer: { type: String },
|
|
|
},
|
|
|
{ timestamps: true }
|
|
|
);
|