Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions devise_2fa.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'rotp', '~> 5.1'
gem.add_runtime_dependency 'rqrcode', '~> 0.10.1'
gem.add_runtime_dependency 'symmetric-encryption', '~> 4.3.0'
gem.requirements << 'SymmetricEncryption must be configured prior to using this gem.'

gem.add_development_dependency 'appraisal'
gem.add_development_dependency 'capybara'
Expand Down
6 changes: 2 additions & 4 deletions lib/generators/active_record/devise_two_factor_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ def inject_field_types

def content
<<RUBY
attr_encrypted :otp_auth_secret
attr_encrypted :otp_recovery_secret
validates :otp_auth_secret, symmetric_encryption: true
validates :otp_recovery_secret, symmetric_encryption: true
attribute :otp_auth_secret, :encrypted
attribute :otp_recovery_secret, :encrypted
RUBY
end

Expand Down