Finished password reset, added email check & profile editing

This commit is contained in:
Johnathon Slightham
2021-09-07 13:04:00 -04:00
parent 7216698a96
commit b1a8963952
4 changed files with 172 additions and 12 deletions

19
schema/reset.model.js Normal file
View File

@@ -0,0 +1,19 @@
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
// Database schema for a password reset
let Reset = new Schema({
userId: {
type: String
},
PIN: {
type: Number
},
date: {
type: Date
}
}, {
collection: 'resets'
});
module.exports = mongoose.model('Reset', Reset);