Advertisement
Guest User

Untitled

a guest
Mar 17th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mongoose = require("mongoose");
  2. var passportLocalMongoose = require("passport-local-mongoose");
  3.  
  4. var UserSchema = new mongoose.Schema({
  5.     username: String,
  6.     password: String
  7. });
  8.  
  9. UserSchema.plugin(passportLocalMongoose);
  10.  
  11. var User = mongoose.model("User", UserSchema);
  12. module.exports = User;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement