# :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