Guest User

Untitled

a guest
Jan 26th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. /*
  2.  
  3. auth.js
  4.  
  5. Auth schema added to model schema. This module requires a model
  6. file and gets the schema, then applies new attributes, methods etc.
  7.  
  8. */
  9.  
  10. var mongoose = require('mongoose'),
  11. multicompile = require('./multicompile');
  12.  
  13. var mc = multicompile.Schema.get();
  14.  
  15. mc.add({
  16. username: { type: String },
  17. password: { type: String }
  18. });
  19.  
  20. multicompile.Schema.set(mc);
Add Comment
Please, Sign In to add comment