X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/552a647810d16013b26a93299406d5797157faba..5d3992daca978f714ff9d6758b6155b9f08ee3f5:/app/controllers/user_controller.rb?ds=sidebyside diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index f24e1ee72..af0ccba05 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -173,8 +173,10 @@ class UserController < ApplicationController else redirect_to :controller => 'site', :action => 'index' end - elsif User.authenticate(:username => email_or_display_name, :password => pass, :inactive => true) + elsif User.authenticate(:username => email_or_display_name, :password => pass, :pending => true) flash.now[:error] = t 'user.login.account not active' + elsif User.authenticate(:username => email_or_display_name, :password => pass, :suspended => true) + flash.now[:error] = t 'user.login.account suspended' else flash.now[:error] = t 'user.login.auth failure' end