Answers for "forget mot de passe api nodejs mongodb example"

0

forget mot de passe api nodejs mongodb example

const mongoose = require('mongoose');


const resettokenSchema = new mongoose.Schema({
_userId: { type: mongoose.Schema.Types.ObjectId, required: true, ref: 'User' },
resettoken: { type: String, required: true },
createdAt: { type: Date, required: true, default: Date.now, expires: 43200 },
});


module.exports = mongoose.model('passwordResetToken', resettokenSchema);
Posted by: Guest on March-13-2021

Code answers related to "forget mot de passe api nodejs mongodb example"

Code answers related to "Javascript"

Browse Popular Code Answers by Language