From 483936772db85ebcf438b47927f85262ea0d5723 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 4 Oct 2010 19:10:00 +0100 Subject: [PATCH] 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. --- app/controllers/user_controller.rb | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.5