From: Tom Hughes Date: Mon, 4 Oct 2010 18:10:00 +0000 (+0100) Subject: Improve the flash message shown after a user signs up X-Git-Tag: live~6281^2~3 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/483936772db85ebcf438b47927f85262ea0d5723?hp=0874c807e3eb02a2880b2a175f066261ee374623 Improve the flash message shown after a user signs up Make the message a bit more friendly and include the email address the confirmation was sent to. --- diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 86b79e8f4..01c154705 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -70,7 +70,7 @@ class UserController < ApplicationController @user.terms_agreed = Time.now.getutc if @user.save - flash[:notice] = t 'user.new.flash create success message' + flash[:notice] = t 'user.new.flash create success message', :email => @user.email Notifier.deliver_signup_confirm(@user, @user.tokens.create(:referer => params[:referer])) redirect_to :action => 'login' else diff --git a/config/locales/en.yml b/config/locales/en.yml index e090c0212..e2bcd1ef5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1540,7 +1540,7 @@ en: password: "Password:" confirm password: "Confirm Password:" continue: Continue - flash create success message: "User was successfully created. Check your email for a confirmation note, and you will be mapping in no time :-)

Please note that you will not be able to login until you've received and confirmed your email address.

If you use an antispam system which sends confirmation requests then please make sure you whitelist webmaster@openstreetmap.org as we are unable to reply to any confirmation requests." + flash create success message: "Thanks for signing up. We've sent a confirmation note to {{email}} and as soon as you confirm your account you'll be able to get mapping.

If you use an antispam system which sends confirmation requests then please make sure you whitelist webmaster@openstreetmap.org as we are unable to reply to any confirmation requests." terms accepted: "Thanks for accepting the new contributor terms!" terms: title: "Contributor terms"