Mercurial > public > sg101
comparison gpp/accounts/views.py @ 503:2c2df8545112
Changed the lockout time on logins to 2 minutes.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Dec 2011 15:07:01 +0000 |
parents | 886cc99e8406 |
children |
comparison
equal
deleted
inserted
replaced
502:9d096ceab0c0 | 503:2c2df8545112 |
---|---|
85 }, | 85 }, |
86 context_instance = RequestContext(request)) | 86 context_instance = RequestContext(request)) |
87 | 87 |
88 ####################################################################### | 88 ####################################################################### |
89 | 89 |
90 @rate_limit(count=10, interval=datetime.timedelta(minutes=1)) | 90 @rate_limit(count=10, interval=datetime.timedelta(minutes=1), |
91 lockout=datetime.timedelta(minutes=2)) | |
91 def login_ajax(request): | 92 def login_ajax(request): |
92 """ | 93 """ |
93 This view function handles a login via AJAX. | 94 This view function handles a login via AJAX. |
94 | 95 |
95 """ | 96 """ |