Skip to content

Commit

Permalink
Added explicit truncation of the IV because of attr-encrypted/encrypt…
Browse files Browse the repository at this point in the history
  • Loading branch information
Charl Matthee committed Aug 8, 2019
1 parent bdb89e5 commit c02fc23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def encryption_options_for(value)
{
value: value,
key: Devise.otp_secret_encryption_key,
iv: iv_for_attribute,
iv: iv_for_attribute[0..12],
salt: salt_for_attribute
}
end
Expand Down

0 comments on commit c02fc23

Please sign in to comment.