]> git.openstreetmap.org Git - rails.git/commitdiff
Fix stupid breakage. Closes #708.
authorTom Hughes <tom@compton.nu>
Sun, 24 Feb 2008 13:43:42 +0000 (13:43 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 24 Feb 2008 13:43:42 +0000 (13:43 +0000)
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
           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."
         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."