Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongoose-user-plugin Build Status

Description

Add common user fonctionnality to document for signin, login and more

This provide to your user schema:

  • signing up with an hash and salt password
  • validate an account
  • checking login
  • add facebook user to the profile
  • check password complexity
  • process for reseting password

Installation

$ npm install mongoose-user-plugin

Overview

Add plugin to a schema

var mongoose           = require('mongoose');
var MongooseUserPlugin = require('mongoose-user-plugin');

var UserSchema = new mongoose.Schema();

UserSchema.plugin(MongooseUserPlugin);

UserSchema.add({
  'myPersonalField': String
});

var User = mongoose.model("User", UserSchema);

module.exports = User;

Specifications

Please see the specifications here

Projects using mongoose-user-plugin

About

easily set user functionnality to a mongoose model

Resources

Contributing

Stars

2 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages