moon-contrib-user-local
local authentication strategy for moon-contrib-user
Last updated 7 years ago by illniyar .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install moon-contrib-user-local 
SYNC missed versions from official npm registry.

Moonshine user local component

Moon-contrib-user-local is an username/password authentication provider for moon-contrib-user.

###Moon-contrib-user-local

  • Applicable settings:

  • USER_LOCAL_ALGORITHM: hashing algorithm to be used to hash passwords. --defaults to 'sha512'

  • USER_LOCAL_SALTLENGTH: length of random salt to be used for to hash passwords --defaults to 16

  • USER_LOCAL_ITERATIONS: number of times to hash the password. --defaults to 2

  • USER_LOCAL_SECRET_TOKEN: secret token to attach to password to increase password length (if secret token is not jepordized).

  • USER_LOCAL_MINIMUM_PASSWORD_LENGTH: minimum length of password for password validation. --defaults to 8

  • Commands:

  • createuser: creates a new user with the given username and password. (use with `moonshine createuser --username=? --password=?)

  • New Resources:

  • "/users/login/local/": log in with username password (post with simple json).

  • Model extensions:

  • User: the user model has been enriched with the following methods. *findByUsernameAndPassword(username,password,callback): static Model method. Finds a user by given username and password (not encrypted). *__

  • Angular modules:

  • user.local['/js/user.local.js'] : new authenticator named "local" is provided. Automatically registered once user.local module is dependend on.

Current Tags

  • 0.0.4                                ...           latest (7 years ago)

4 Versions

  • 0.0.4                                ...           7 years ago
  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |