Permalink
Browse files

Changed loginPath and authPath to better named getLoginPath and postL…

…oginPath
  • Loading branch information...
1 parent 1eb3bb6 commit e95d6679c69d8a126794cb9cb77fc5270564d0e1 @bnoguchi committed Apr 5, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +2 −2 lib/password.js
View
4 README.md
@@ -55,8 +55,8 @@ Authentication and authorization (password, facebook, & more) for your node.js C
, connect = require('connect');
everyauth.password
- .loginPath('/login') // Page with the login form
- .authPath('/login') // What you POST to
+ .getLoginPath('/login') // Page with the login form
+ .postLoginPath('/login') // What you POST to
.loginView('a string of html; OR the name of the jade/etc-view-engine view')
.redirectPath('/') // Where to redirect to after a login
.findUser( function (didSucceed, login) {
View
4 lib/password.js
@@ -5,11 +5,11 @@ everyModule.submodule('password')
.configurable('loginName passwordName loginView redirectPath')
.loginName('login')
.passwordName('password')
- .get('loginPath')
+ .get('getLoginPath')
.step('displayLogin')
.accepts('req res')
.promises(null)
- .post('authPath')
+ .post('postLoginPath')
.step('extractLoginPassword')
.accepts('req res')
.promises('login password')

0 comments on commit e95d667

Please sign in to comment.