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

Latest version (4) of rotp gem breaks active_model_otp #44

Closed rob-anderson closed 6 years ago

rob-anderson commented 6 years ago

To reproduce:

bundle update

call [model name].otp_code

response:

ArgumentError: wrong number of arguments (given 2, expected 1) from .rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rotp-4.0.2/lib/rotp/totp.rb:17:in `at'

lkananowicz commented 5 years ago

It seems that version of active_model_otp gem on rubygems.org is outdated and not in sync with master branch on github. Can you please bump the version to 1.3.0?