Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mongoose = require('mongoose');
- var passportLocalMongoose = require('passport-local-mongoose');
- var Schema = mongoose.Schema;
- var AccountSchema = new Schema({
- username: String,
- password: String,
- });
- AccountSchema.plugin(passportLocalMongoose);
- module.exports = mongoose.model('authapp', AccountSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement