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

BCrypt::Errors::InvalidHash #116

Open NicholusMuwonge opened 1 year ago

NicholusMuwonge commented 1 year ago

Versions:

active_model_otp (2.3.2)
      activemodel
      rotp (~> 6.2.0)
      rails (7.0.6)
      ruby 3.2.2

Every user, who is created with has_one_time_password present in the User model, gets this error below if they try to log in or use the password.

BCrypt::Errors::InvalidHash

I need help to move past this, please. Thank you.