Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. var mongoose = require('mongoose');
  2. var passportLocalMongoose = require('passport-local-mongoose');
  3. var Schema = mongoose.Schema;
  4.  
  5. var AccountSchema = new Schema({
  6. username: String,
  7. password: String,
  8. });
  9.  
  10. AccountSchema.plugin(passportLocalMongoose);
  11.  
  12. module.exports = mongoose.model('authapp', AccountSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement