diff --git a/lib/two_factor_authentication/models/two_factor_authenticatable.rb b/lib/two_factor_authentication/models/two_factor_authenticatable.rb index 376038e..716d676 100644 --- a/lib/two_factor_authentication/models/two_factor_authenticatable.rb +++ b/lib/two_factor_authentication/models/two_factor_authenticatable.rb @@ -162,7 +162,7 @@ module Devise iv = encrypted_otp_secret_key_iv if iv.nil? - algo = OpenSSL::Cipher::Cipher.new(algorithm) + algo = OpenSSL::Cipher.new(algorithm) iv = [algo.random_iv].pack('m') self.encrypted_otp_secret_key_iv = iv end