From 68f407c632a840c4eddd2d74b583e06e061db2a9 Mon Sep 17 00:00:00 2001 From: newtrat Date: Tue, 14 Mar 2017 19:01:00 -0400 Subject: [PATCH] Fix OpenSSL deprecation warning OpenSSL::Cipher::Cipher has been deprecated in favor of OpenSSL::Cipher --- .../models/two_factor_authenticatable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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