diff --git a/lib/devise/models/lockable.rb b/lib/devise/models/lockable.rb index ac598e24..376c8217 100644 --- a/lib/devise/models/lockable.rb +++ b/lib/devise/models/lockable.rb @@ -105,7 +105,7 @@ module Devise end def unauthenticated_message - if self.respond_to?(:failed_attempts) && attempts_exceeded? + if lock_strategy_enabled?(:failed_attempts) && attempts_exceeded? :locked else super