0
0
Fork 0

Provide default OTP_SECRET value for development environment (#6617)

This commit is contained in:
Akihiko Odaki 2018-03-05 04:28:24 +09:00 committed by Eugen Rochko
parent 7a6eaad445
commit c110fa62ac
5 changed files with 7 additions and 2 deletions

View file

@ -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