X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cacf1879c3bbae1fac645b53be6abf9ee139d686..112950ca3afd95c8b63e69f7b580585529b6cbaf:/app/controllers/user_controller.rb?ds=sidebyside 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."