Closed jarkelen closed 3 years ago
Hello, @jarkelen ! 👋
Thanks for your report.
I've opened a pull request with that bugfix, can you test inside your application? I believe that will be fixed now.
To test, please make something like this in your Gemfile:
gem 'active_model_otp', github: 'heapsource/active_model_otp', branch: 'master'
Sorry for my late reaction, it works, thanks!
I authenticate the token filled in by the user like this, where
params[:otp_token]
is the user filled token from the view:I noticed when
params[:otp_token]
is an empty string, that the result istrue
, which should befalse
? In my opinion any empty or nil value should always result in afalse
result?