Module: Devise::Models::OtpAuthenticatable::ClassMethods

Defined in:
lib/devise_otp_authenticatable/models/otp_authenticatable.rb

Instance Method Summary collapse

Instance Method Details

#find_valid_otp_challenge(challenge) ⇒ Object



17
18
19
# File 'lib/devise_otp_authenticatable/models/otp_authenticatable.rb', line 17

def find_valid_otp_challenge(challenge)
  with_valid_otp_challenge(Time.now).where(:otp_session_challenge => challenge).first
end