mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Fixing lockable to use the correct method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user