]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
We were double encrypting OTP keys, and it made my head hurt
authorAidan Cornelius-Bell <[email protected]>
Sun, 12 Jan 2025 06:19:37 +0000 (16:49 +1030)
committerAidan Cornelius-Bell <[email protected]>
Sun, 12 Jan 2025 06:19:37 +0000 (16:49 +1030)
app/models/user.rb

index 7edf9b5adb5743ea1b860dadfb4daea2cff3462b..1726c37d750cc82d146c64a7093f0f6401b1bf6e 100644 (file)
@@ -3,8 +3,7 @@ class User < ApplicationRecord
   # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
   devise :database_authenticatable, :registerable,
          :recoverable, :rememberable, :validatable,
-         :confirmable, :lockable, :two_factor_authenticatable, :two_factor_backupable,
-         otp_secret_encryption_key: Rails.application.credentials.dig(:active_record_encryption, :primary_key)
+         :confirmable, :lockable, :two_factor_authenticatable, :two_factor_backupable
 
   encrypts :otp_secret
   attr_accessor :otp_plain_secret