mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 05:39:59 +00:00
Use cache to record user login attempts
This commit is contained in:
@@ -346,9 +346,8 @@ LOGGING = {
|
||||
}
|
||||
|
||||
#Login Attempt
|
||||
import datetime
|
||||
LOGIN_ATTEMPT_LIMIT = 3
|
||||
LOGIN_ATTEMPT_TIMEOUT = datetime.timedelta(minutes=15)
|
||||
LOGIN_ATTEMPT_TIMEOUT = 15 * 60 # in seconds (default: 15 minutes)
|
||||
|
||||
#################
|
||||
# Email sending #
|
||||
|
Reference in New Issue
Block a user