From 1c6a83f0e83f7a97301edbe902ef8f5e501e3d0f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 24 Feb 2008 13:43:42 +0000 Subject: [PATCH] Fix stupid breakage. Closes #708. --- app/controllers/user_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index c399066ca..bd0c143c0 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -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.
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." -- 2.43.2