@user.save!
referer = token.referer
token.destroy
- flash[:notice] = t 'user.confirm.success'
session[:user] = @user.id
unless referer.nil?
+ flash[:notice] = t('user.confirm.success')
redirect_to referer
else
+ flash[:notice] = t('user.confirm.success') + "<br /><br />" + t('user.confirm.before you start')
redirect_to :action => 'account', :display_name => @user.display_name
end
else
- flash[:error] = t 'user.confirm.failure'
+ flash[:error] = t('user.confirm.failure')
redirect_to :action => 'login', :display_name => @user.display_name
end
end
press confirm button: "Press the confirm button below to activate your account."
button: Confirm
success: "Confirmed your account, thanks for signing up!"
+ before you start: "We know you're probably in a hurry to start mapping, but before you do you might like to fill in some more information about yourself in the form below."
failure: "A user account with this token has already been confirmed."
confirm_email:
heading: Confirm a change of email address