Fixing lockable to use the correct method
This commit is contained in:
parent
a7658f9d75
commit
61929d2e2f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue