mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-27 20:10:06 +00:00
Bugfix from testrun
This commit is contained in:
parent
3814fbf08f
commit
31a344b410
@ -1354,7 +1354,7 @@ def login():
|
|||||||
@limiter.limit("3/minute", key_func=lambda: request.form.get('username', "").strip().lower())
|
@limiter.limit("3/minute", key_func=lambda: request.form.get('username', "").strip().lower())
|
||||||
def login_post():
|
def login_post():
|
||||||
form = request.form.to_dict()
|
form = request.form.to_dict()
|
||||||
username = form.get('username', "").strip().lower().replace("\n","\\n").replace("\r","")
|
username = form.get('username', "").strip().lower().replace("\n","").replace("\r","")
|
||||||
try:
|
try:
|
||||||
limiter.check()
|
limiter.check()
|
||||||
except RateLimitExceeded:
|
except RateLimitExceeded:
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user