Browse Source

Update README: add second_factor_resource_id

master
Konrad Jurkowski 8 years ago
parent
commit
8da2d4a099
  1. 1
      README.md

1
README.md

@ -96,6 +96,7 @@ config.direct_otp_valid_for = 5.minutes # Time before direct OTP becomes invali
config.direct_otp_length = 6 # Direct OTP code length config.direct_otp_length = 6 # Direct OTP code length
config.remember_otp_session_for_seconds = 30.days # Time before browser has to perform 2fA again. Default is 0. config.remember_otp_session_for_seconds = 30.days # 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
``` ```
The `otp_secret_encryption_key` must be a random key that is not stored in the The `otp_secret_encryption_key` must be a random key that is not stored in the
DB, and is not checked in to your repo. It is recommended to store it in an DB, and is not checked in to your repo. It is recommended to store it in an

Loading…
Cancel
Save