]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Adding trace link to logged in user's profile too.
[rails.git] / app / controllers / user_controller.rb
index 459058ee5bc4c0a1970bd849cd6a02126eb2675b..998a636c1b11f6d1853d9b62771d901fe7ed78e8 100644 (file)
@@ -11,7 +11,7 @@ class UserController < ApplicationController
     @user.set_defaults
 
     if @user.save
-      flash[:notice] = 'User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)'
+      flash[:notice] = "User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)<br>Please note that you won't be able to login until you've received and confirmed your email address."
       Notifier::deliver_signup_confirm(@user)
       redirect_to :action => 'login'
     else
@@ -116,6 +116,8 @@ class UserController < ApplicationController
           redirect_to :controller => 'site', :action => 'index'
         end
         return
+      elsif User.authenticate(email, pass, false)
+        flash[:notice] = "Sorry, your account is not active yet.<br>Please click on the link in the account confirmation email to activate your account."
       else
         flash[:notice] = "Sorry, couldn't log in with those details."
       end