|
|
@ -316,6 +316,7 @@ Devise.setup do |config| |
|
|
|
config.otp_length = 6 # TOTP code length |
|
|
|
config.otp_length = 6 # TOTP code length |
|
|
|
config.direct_otp_valid_for = 5.minutes # Time before direct OTP becomes invalid |
|
|
|
config.direct_otp_valid_for = 5.minutes # Time before direct OTP becomes invalid |
|
|
|
config.direct_otp_length = 6 # Direct OTP code length |
|
|
|
config.direct_otp_length = 6 # Direct OTP code length |
|
|
|
|
|
|
|
config.direct_otp_valid_for = 15.minutes # Time before direct OTP becomes invalid |
|
|
|
config.remember_otp_session_for_seconds = 1.day # Time before browser has to perform 2fA again. Default is 0. |
|
|
|
config.remember_otp_session_for_seconds = 1.day # Time before browser has to perform 2fA again. Default is 0. |
|
|
|
config.otp_secret_encryption_key = ENV["OTP_SECRET_ENCRYPTION_KEY"] |
|
|
|
config.otp_secret_encryption_key = ENV["OTP_SECRET_ENCRYPTION_KEY"] |
|
|
|
config.second_factor_resource_id = "id" # Field or method name used to set value for 2fA remember cookie |
|
|
|
config.second_factor_resource_id = "id" # Field or method name used to set value for 2fA remember cookie |
|
|
|