Skip to content

FrozenRidge/express-forgot-password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forgot Password Flow

Express sub-app for a forgotton password flow.

Assumptions:

  • Mongodb / mongoose
  • User model has .findByEmail

Usage:

var forgotton = require('express-forgotton-password')({ 
 // None of this is optional :(
  mailConfig: config // config for nodemailer
, mailFrom: "nomail" // mailer from address
, db: mongoose
, resetMailSubject : "Reset yout mysite password"
, resetMailContent : function(user, token){ 
    return "reset link: http://mysite" + token + " \n thanks" 
  }
, user : UserModel })
app.use(forgotton.app)

About

Express Forgotton Password Flow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published