Module: Sorcery::Model::Submodules::BruteForceProtection::ClassMethods

Defined in:
lib/sorcery/model/submodules/brute_force_protection.rb

Instance Method Summary collapse

Instance Method Details

#load_from_unlock_token(token, &block) ⇒ Object

This doesn’t check to see if the account is still locked



44
45
46
47
48
49
50
51
52
# File 'lib/sorcery/model/submodules/brute_force_protection.rb', line 44

def load_from_unlock_token(token, &block)
  return if token.blank?

  load_from_token(
    token,
    sorcery_config.unlock_token_attribute_name,
    &block
  )
end