class Devise::PasswordsController

def unlockable?(resource)

allows to unlock resource on password reset
Check if proper Lockable module methods are present & unlock strategy
def unlockable?(resource)
  resource.respond_to?(:unlock_access!) &&
    resource.respond_to?(:unlock_strategy_enabled?) &&
    resource.unlock_strategy_enabled?(:email)
end