class Devise::Strategies::Latcheable
Public Instance Methods
authenticate!()
click to toggle source
# File lib/devise_latcheable/strategy.rb, line 6 def authenticate! resource = mapping.to.find_by(authentication_hash) if resource && validate(resource) { resource.latch_unlocked? } if ::DeviseLatcheable.config['latch_only'] == true success! resource else pass end else fail 'Latch is locked. Unlock and try again.' end end