Provide default OTP_SECRET value for development environment (#6617)
This commit is contained in:
committed by
Eugen Rochko
parent
7a6eaad445
commit
c110fa62ac
@ -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
|
||||
|
Reference in New Issue
Block a user