Hello all,I have a Schema similar to the one below; When I create a "local user" my registrationConfirmed field is not set to false or anything, it does not appear at all. Any one knows why?const userSchema = mongoose.Schema({ local:{ type:{ email: {type: String, unique: true, required: true}, name: {type: String, required: true}, password: {type: String, required: true}, resetPasswordToken: String, resetPasswordExpires: Date, verificationToken: String, verificationExpires: Date, registrationConfirmed: {type: Boolean, default: false} }, required: false }, accountType: String }); Thank you in advance.
Submitted August 18, 2019 at 07:19PM by dejavits
No comments:
Post a Comment