Skip to content

Commit

Permalink
Correction to README section on registerUser
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoguchi committed May 3, 2011
1 parent fb81710 commit 463e1de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -306,8 +306,7 @@ everyauth.password
// any errors.
//
// Returns a user (or a Promise that promises a user) after adding it to
// some user store. You can also do things here like registration validation
// and re-directing back to the registration page upon invalid registration
// some user store.
//
// As an edge case, sometimes your database may make you aware of violation
// of the unique login index, so if this error is sent back in an async
Expand All @@ -322,6 +321,9 @@ everyauth.password
// promise.fulfill(user);
// });
// return promise;
//
// Note: Index and db-driven validations are the only validations that occur
// here; all other validations occur in the `validateRegistration` step documented above.
})
.registerSuccessRedirect('/'); // Where to redirect to after a successful registration

Expand Down

0 comments on commit 463e1de

Please sign in to comment.