Move confirmation methods into ConfirmationsController
This commit is contained in:
parent
7a66c6d4eb
commit
094d6c8bb9
12 changed files with 533 additions and 508 deletions
|
@ -1519,6 +1519,29 @@ en:
|
|||
details_html: "More details about the changeset can be found at %{url}."
|
||||
unsubscribe: 'To unsubscribe from updates to this changeset, visit %{url} and click "Unsubscribe".'
|
||||
unsubscribe_html: 'To unsubscribe from updates to this changeset, visit %{url} and click "Unsubscribe".'
|
||||
confirmations:
|
||||
confirm:
|
||||
heading: Check your email!
|
||||
introduction_1: |
|
||||
We sent you a confirmation email.
|
||||
introduction_2: |
|
||||
Confirm your account by clicking on the link in the email and you'll be able to start mapping.
|
||||
press confirm button: "Press the confirm button below to activate your account."
|
||||
button: Confirm
|
||||
success: "Confirmed your account, thanks for signing up!"
|
||||
already active: "This account has already been confirmed."
|
||||
unknown token: "That confirmation code has expired or does not exist."
|
||||
reconfirm_html: "If you need us to resend the confirmation email, <a href=\"%{reconfirm}\">click here</a>."
|
||||
confirm_resend:
|
||||
success_html: "We've sent a new confirmation note to %{email} and as soon as you confirm your account you'll be able to get mapping.<br /><br />If you use an antispam system which sends confirmation requests then please make sure you whitelist %{sender} as we are unable to reply to any confirmation requests."
|
||||
failure: "User %{name} not found."
|
||||
confirm_email:
|
||||
heading: Confirm a change of email address
|
||||
press confirm button: "Press the confirm button below to confirm your new email address."
|
||||
button: Confirm
|
||||
success: "Confirmed your change of email address!"
|
||||
failure: "An email address has already been confirmed with this token."
|
||||
unknown_token: "That confirmation code has expired or does not exist."
|
||||
messages:
|
||||
inbox:
|
||||
title: "Inbox"
|
||||
|
@ -2451,28 +2474,6 @@ en:
|
|||
return to profile: Return to profile
|
||||
flash update success confirm needed: "User information updated successfully. Check your email for a note to confirm your new email address."
|
||||
flash update success: "User information updated successfully."
|
||||
confirm:
|
||||
heading: Check your email!
|
||||
introduction_1: |
|
||||
We sent you a confirmation email.
|
||||
introduction_2: |
|
||||
Confirm your account by clicking on the link in the email and you'll be able to start mapping.
|
||||
press confirm button: "Press the confirm button below to activate your account."
|
||||
button: Confirm
|
||||
success: "Confirmed your account, thanks for signing up!"
|
||||
already active: "This account has already been confirmed."
|
||||
unknown token: "That confirmation code has expired or does not exist."
|
||||
reconfirm_html: "If you need us to resend the confirmation email, <a href=\"%{reconfirm}\">click here</a>."
|
||||
confirm_resend:
|
||||
success_html: "We've sent a new confirmation note to %{email} and as soon as you confirm your account you'll be able to get mapping.<br /><br />If you use an antispam system which sends confirmation requests then please make sure you whitelist %{sender} as we are unable to reply to any confirmation requests."
|
||||
failure: "User %{name} not found."
|
||||
confirm_email:
|
||||
heading: Confirm a change of email address
|
||||
press confirm button: "Press the confirm button below to confirm your new email address."
|
||||
button: Confirm
|
||||
success: "Confirmed your change of email address!"
|
||||
failure: "An email address has already been confirmed with this token."
|
||||
unknown_token: "That confirmation code has expired or does not exist."
|
||||
set_home:
|
||||
flash success: "Home location saved successfully"
|
||||
go_public:
|
||||
|
|
|
@ -156,10 +156,10 @@ OpenStreetMap::Application.routes.draw do
|
|||
post "/user/new" => "users#create"
|
||||
get "/user/terms" => "users#terms"
|
||||
post "/user/save" => "users#save"
|
||||
get "/user/:display_name/confirm/resend" => "users#confirm_resend", :as => :user_confirm_resend
|
||||
match "/user/:display_name/confirm" => "users#confirm", :via => [:get, :post]
|
||||
match "/user/confirm" => "users#confirm", :via => [:get, :post]
|
||||
match "/user/confirm-email" => "users#confirm_email", :via => [:get, :post]
|
||||
get "/user/:display_name/confirm/resend" => "confirmations#confirm_resend", :as => :user_confirm_resend
|
||||
match "/user/:display_name/confirm" => "confirmations#confirm", :via => [:get, :post]
|
||||
match "/user/confirm" => "confirmations#confirm", :via => [:get, :post]
|
||||
match "/user/confirm-email" => "confirmations#confirm_email", :via => [:get, :post]
|
||||
post "/user/go_public" => "users#go_public"
|
||||
match "/user/reset-password" => "passwords#reset_password", :via => [:get, :post], :as => :user_reset_password
|
||||
match "/user/forgot-password" => "passwords#lost_password", :via => [:get, :post], :as => :user_forgot_password
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue