]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
more accurate unwayed segments display; warning icon flashes and has a Helpful Tooltip
[rails.git] / app / controllers / user_controller.rb
index f01157bc011fd3afa5ee9313faadef422172c7c0..b1a37872bd6922a485b080a3dc72caed3ec24219 100644 (file)
@@ -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
@@ -184,11 +186,6 @@ class UserController < ApplicationController
     @title = @this_user.display_name
   end
 
-  def diary
-    @this_user = User.find_by_display_name(params[:display_name])
-    @title = @this_user.display_name + "'s diary"
-  end
-
   def make_friend
 
     if params[:display_name]