]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Improve the flash message shown after a user signs up
[rails.git] / app / controllers / user_controller.rb
index 86b79e8f4d26636ac909a59bcce3b1750217ef76..01c154705166d5a0d005282caf28ffe591492a1e 100644 (file)
@@ -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