We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13ea083 + 57517e5 commit 20c9d14Copy full SHA for 20c9d14
lib/two_factor_authentication/models/two_factor_authenticatable.rb
@@ -162,7 +162,7 @@ def iv_for_attribute(algorithm = 'aes-256-cbc')
162
iv = encrypted_otp_secret_key_iv
163
164
if iv.nil?
165
- algo = OpenSSL::Cipher::Cipher.new(algorithm)
+ algo = OpenSSL::Cipher.new(algorithm)
166
iv = [algo.random_iv].pack('m')
167
self.encrypted_otp_secret_key_iv = iv
168
end
0 commit comments