Skip to content

Commit

Permalink
Change property names for registration redirect targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
magro committed Feb 27, 2013
1 parent d567919 commit cbda5e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions docs/src/manual/source/guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ These settings go in the `smtp` section of the `securesocial.conf` file:

- `onLogoutGoTo`: The page where the user is redirected to after logging out.

- `onHandleStartSignUpGoTo`: The page where the user is redirected to after sign up was started (form with email address was submitted/processed)
- `onStartSignUpGoTo`: The page where the user is redirected to after sign up was started (form with email address was submitted/processed)

- `onHandleSignUpGoTo`: The page where the user is redirected to after sign-up was completed (full sign up form was submitted/processed)
- `onSignUpGoTo`: The page where the user is redirected to after sign-up was completed (full sign up form was submitted/processed)

- `onHandleStartResetPasswordGoTo`: The page where the user is redirected to after password reset was started (form with email address was submitted/processed)
- `onStartResetPasswordGoTo`: The page where the user is redirected to after password reset was started (form with email address was submitted/processed)

- `onHandleResetPasswordGoTo`: The page where the user is redirected to after the password was reset (change password form was submitted/processed)
- `onResetPasswordGoTo`: The page where the user is redirected to after the password was reset (change password form was submitted/processed)

- `ssl`: You can enable SSL for OAuth callbacks, the login, signup and reset password actions of the `UsernamePasswordProvider` and for the cookie used to trace users (you'll want this in production mode).

Expand Down
8 changes: 4 additions & 4 deletions module-code/app/securesocial/controllers/Registration.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ object Registration extends Controller {
val TokenDuration = Play.current.configuration.getInt(TokenDurationKey).getOrElse(DefaultDuration)

/** The redirect target of the handleStartSignUp action. */
val onHandleStartSignUpGoTo = stringConfig("securesocial.onHandleStartSignUpGoTo", RoutesHelper.login().url)
val onHandleStartSignUpGoTo = stringConfig("securesocial.onStartSignUpGoTo", RoutesHelper.login().url)
/** The redirect target of the handleSignUp action. */
val onHandleSignUpGoTo = stringConfig("securesocial.onHandleSignUpGoTo", RoutesHelper.login().url)
val onHandleSignUpGoTo = stringConfig("securesocial.onSignUpGoTo", RoutesHelper.login().url)
/** The redirect target of the handleStartResetPassword action. */
val onHandleStartResetPasswordGoTo = stringConfig("securesocial.onHandleStartResetPasswordGoTo", RoutesHelper.login().url)
val onHandleStartResetPasswordGoTo = stringConfig("securesocial.onStartResetPasswordGoTo", RoutesHelper.login().url)
/** The redirect target of the handleResetPassword action. */
val onHandleResetPasswordGoTo = stringConfig("securesocial.onHandleResetPasswordGoTo", RoutesHelper.login().url)
val onHandleResetPasswordGoTo = stringConfig("securesocial.onResetPasswordGoTo", RoutesHelper.login().url)

private def stringConfig(key: String, default: => String) = {
Play.current.configuration.getString(key).getOrElse(default)
Expand Down
8 changes: 4 additions & 4 deletions module-code/conf/securesocial/defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
securesocial {
onLoginGoTo=/
onLogoutGoTo=/login
onHandleStartSignUpGoTo=/login
onHandleSignUpGoTo=/login
onHandleStartResetPasswordGoTo=/login
onHandleResetPasswordGoTo=/login
onStartSignUpGoTo=/login
onSignUpGoTo=/login
onStartResetPasswordGoTo=/login
onResetPasswordGoTo=/login

twitter {
requestTokenUrl="https://twitter.com/oauth/request_token"
Expand Down

0 comments on commit cbda5e8

Please sign in to comment.