Browse Source

Merge pull request #114 from newtrat/fix-test-and-deprecations

Fix test and deprecations
master
Dmitrii Golub 8 years ago committed by GitHub
parent
commit
20c9d14dd1
  1. 2
      lib/two_factor_authentication/models/two_factor_authenticatable.rb

2
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

Loading…
Cancel
Save