lean-auth
v1.0.1
Published
[![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
Downloads
5
Readme
lean-auth
features
- username/password login
- ldap login
- email verification
- password recovery
- role/permission management
api
const {Auth} = require("lean-auth")
let auth = new Auth({database: "mysql://user:passwd@localhost/db"})
auth.sync().then(function(){
auth.createUser({
name: name,
email: email,
password: password
})
})
auth.login({name: name}, password)