heapsource / active_model_otp

Adds methods to set and authenticate against one time passwords (Two-Factor Authentication). Inspired in AM::SecurePassword
MIT License
773 stars 81 forks source link

Undefined method "verify_with_drift" #47

Closed hkairi closed 5 years ago

hkairi commented 5 years ago

Trying to "authenticate_otp" ==> undefined method `verify_with_drift' for #

jeanpauldejong commented 5 years ago

The solution mentioned in the link below resolved it for me https://github.com/heapsource/active_model_otp/issues/46#issuecomment-440442218

You'll have to keep the rotp dependency to the previous version most likely.

gem 'rotp', '= 3.3.1'

hkairi commented 5 years ago

freezing the version number fixes the issue