From 67c5cca44b960a69fead93b3fabe44685a3c3ff9 Mon Sep 17 00:00:00 2001 From: Jayram Date: Mon, 8 Feb 2021 19:26:29 +0530 Subject: [PATCH] docs: add annotations for MAX_FAILED_LOGIN_ATTEMPTS_LOCKOUT_PERIOD_SECS settings docs: added related settings description for login attempts --- lms/envs/common.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lms/envs/common.py b/lms/envs/common.py index 4149381424..8a8585695b 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -3390,8 +3390,16 @@ FILE_UPLOAD_STORAGE_PREFIX = 'submissions_attachments' # .. setting_default: 6 # .. setting_description: Specifies the maximum failed login attempts allowed to users. Once the user reaches this # failure threshold then the account will be locked for a configurable amount of seconds (30 minutes) which will -# prevent additional login attempts until this time period has passed. +# prevent additional login attempts until this time period has passed. This setting is related with +# MAX_FAILED_LOGIN_ATTEMPTS_LOCKOUT_PERIOD_SECS and only used when ENABLE_MAX_FAILED_LOGIN_ATTEMPTS is enabled. MAX_FAILED_LOGIN_ATTEMPTS_ALLOWED = 6 + +# .. setting_name: MAX_FAILED_LOGIN_ATTEMPTS_LOCKOUT_PERIOD_SECS +# .. setting_default: 30 * 60 +# .. setting_description: Specifies the lockout period in seconds for consecutive failed login attempts. Once the user +# reaches the threshold of the login failure, then the account will be locked for the given amount of seconds +# (30 minutes) which will prevent additional login attempts until this time period has passed. This setting is +# related with MAX_FAILED_LOGIN_ATTEMPTS_ALLOWED and only used when ENABLE_MAX_FAILED_LOGIN_ATTEMPTS is enabled. MAX_FAILED_LOGIN_ATTEMPTS_LOCKOUT_PERIOD_SECS = 30 * 60