Skip to content

Commit 20c9d14

Browse files
authored
Merge pull request #114 from newtrat/fix-test-and-deprecations
Fix test and deprecations
2 parents 13ea083 + 57517e5 commit 20c9d14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/two_factor_authentication/models/two_factor_authenticatable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def iv_for_attribute(algorithm = 'aes-256-cbc')
162162
iv = encrypted_otp_secret_key_iv
163163

164164
if iv.nil?
165-
algo = OpenSSL::Cipher::Cipher.new(algorithm)
165+
algo = OpenSSL::Cipher.new(algorithm)
166166
iv = [algo.random_iv].pack('m')
167167
self.encrypted_otp_secret_key_iv = iv
168168
end

0 commit comments

Comments
 (0)