Skip to content
This repository
Browse code

Updated README to reflect the password module.

  • Loading branch information...
commit 09ec9be5e8e5f6b2f1eecf1b8983747c8d0fa3c0 1 parent 7fcbc7d
Brian Noguchi authored

Showing 1 changed file with 10 additions and 6 deletions. Show diff stats Hide diff stats

  1. +10 6 README.md
16 README.md
Source Rendered
@@ -53,13 +53,17 @@ Authentication and authorization (password, facebook, & more) for your node.js C
53 53 , connect = require('connect');
54 54
55 55 everyauth.password
56   - .myHostname('http://localhost:3000')
57   - .appId('YOUR APP ID HERE')
58   - .appSecret('YOUR APP SECRET HERE')
59   - .findOrCreateUser( function (session, accessToken, fbUserMetadata) {
60   - // find or create user logic goes here
  56 + .loginPath('/login') // Page with the login form
  57 + .authPath('/login') // What you POST to
  58 + .loginView('a string of html; OR the name of the jade/etc-view-engine view')
  59 + .redirectPath('/') // Where to redirect to after a login
  60 + .findUser( function (didSucceed, login) {
  61 + // Code to find the user based on whether we successfully authenticated or not
61 62 })
62   - .redirectPath('/');
  63 + .authenticate( function (login, password) {
  64 + // Returns a boolean or Promise with future Boolean value
  65 + // based on the login + password
  66 + });
63 67
64 68 var routes = function (app) {
65 69 // Define your routes here

0 comments on commit 09ec9be

Please sign in to comment.
Something went wrong with that request. Please try again.