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) ⇒ Object



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

def load_from_unlock_token(token)
  return nil if token.blank?
  user = sorcery_adapter.find_by_token(sorcery_config.unlock_token_attribute_name,token)
  user
end