X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cacf1879c3bbae1fac645b53be6abf9ee139d686..1f0636d2532b014573f98f835a6725d5663b7c9c:/app/controllers/user_controller.rb 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."