1
0
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:
zhengxie
2013-11-09 10:33:53 +08:00
parent bdbe73f6bc
commit 017325290c
6 changed files with 66 additions and 60 deletions

View File

@@ -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 #