mup

mongoose-user-plugin

easily set user functionnality to a mongoose model

Showing:

Popularity

Downloads/wk

2

GitHub Stars

2

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

3

Size (min+gzip)

13.5KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial