Provide default OTP_SECRET value for development environment (#6617)
This commit is contained in:
parent
7a6eaad445
commit
c110fa62ac
5 changed files with 7 additions and 2 deletions
|
@ -44,7 +44,7 @@ class User < ApplicationRecord
|
|||
ACTIVE_DURATION = 14.days
|
||||
|
||||
devise :two_factor_authenticatable,
|
||||
otp_secret_encryption_key: ENV.fetch('OTP_SECRET')
|
||||
otp_secret_encryption_key: Rails.configuration.x.otp_secret
|
||||
|
||||
devise :two_factor_backupable,
|
||||
otp_number_of_backup_codes: 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue