Browse Source

OTP code 5 digits consistent with notify gateway

pull/270/head
baarkerlounger 3 years ago
parent
commit
eceba7a911
  1. 5
      config/initializers/devise.rb

5
config/initializers/devise.rb

@ -313,10 +313,9 @@ Devise.setup do |config|
# 2FA
config.max_login_attempts = 3 # Maximum second factor attempts count.
config.allowed_otp_drift_seconds = 30 # Allowed TOTP time drift between client and server.
config.otp_length = 6 # TOTP code length
config.direct_otp_valid_for = 5.minutes # Time before direct OTP becomes invalid
config.direct_otp_length = 6 # Direct OTP code length
config.otp_length = 5 # TOTP code length
config.direct_otp_valid_for = 15.minutes # Time before direct OTP becomes invalid
config.direct_otp_length = 5 # Direct OTP code length
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.second_factor_resource_id = "id" # Field or method name used to set value for 2fA remember cookie

Loading…
Cancel
Save