Finished password reset, added email check & profile editing
This commit is contained in:
19
schema/reset.model.js
Normal file
19
schema/reset.model.js
Normal 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);
|
||||
Reference in New Issue
Block a user