]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
various relations fixes
[rails.git] / app / controllers / user_controller.rb
index c399066ca231bcbefa5b0b42cc1c730892e01e07..bd0c143c0ce7f5866bb35c9668e09b3485633263 100644 (file)
@@ -116,7 +116,7 @@ class UserController < ApplicationController
           redirect_to :controller => 'site', :action => 'index'
         end
         return
-      elsif User.authenticate(:username => email_or_display_name, :password => pass, :invalid => true)
+      elsif User.authenticate(:username => email_or_display_name, :password => pass, :inactive => true)
         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."