From a32f71a534a893ef6169bfe03e1e6c6c5d619339 Mon Sep 17 00:00:00 2001 From: Tigran Apoyan Date: Wed, 1 Mar 2017 19:43:59 +0400 Subject: [PATCH] Update two_factor_authenticatable.rb --- .../models/two_factor_authenticatable.rb | 3 ++- 1 file changed, 2 insertions(+), 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 7d4a330..376038e 100644 --- a/lib/two_factor_authentication/models/two_factor_authenticatable.rb +++ b/lib/two_factor_authentication/models/two_factor_authenticatable.rb @@ -153,7 +153,8 @@ module Devise value: value, key: Devise.otp_secret_encryption_key, iv: iv_for_attribute, - salt: salt_for_attribute + salt: salt_for_attribute, + algorithm: 'aes-256-cbc' } end