* Changed "Something went wrong" error to "you've already used that token". From reading the code that's the only time it's displayed
@user.email_valid = true
@user.save!
token.destroy
@user.email_valid = true
@user.save!
token.destroy
- flash[:notice] = 'Confirmed your account, thanks for signing up!'
+ flash[:notice] = I18n.t('user.confirm.success')
session[:user] = @user.id
redirect_to :action => 'account', :display_name => @user.display_name
else
session[:user] = @user.id
redirect_to :action => 'account', :display_name => @user.display_name
else
- @notice = 'Something went wrong confirming that user.'
+ @notice = I18n.t('user.confirm.failure')
@user.email_valid = true
@user.save!
token.destroy
@user.email_valid = true
@user.save!
token.destroy
- flash[:notice] = 'Confirmed your email address, thanks for signing up!'
+ flash[:notice] = I18n.t('user.confirm email.success')
session[:user] = @user.id
redirect_to :action => 'account', :display_name => @user.display_name
else
session[:user] = @user.id
redirect_to :action => 'account', :display_name => @user.display_name
else
- @notice = 'Something went wrong confirming that email address.'
+ @notice = I18n.t('user.confirm email.failure')
heading: Confirm a user account
press confirm button: "Press the confirm button below to activate your account."
button: Confirm
heading: Confirm a user account
press confirm button: "Press the confirm button below to activate your account."
button: Confirm
+ success: "Confirmed your account, thanks for signing up!"
+ failure: "A user account with this token has already been confirmed."
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
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 email address, thanks for signing up!"
+ failure: "An email address has already been confirmed with this token."
set_home:
flash success: "Home location saved successfully"
go_public:
set_home:
flash success: "Home location saved successfully"
go_public: