mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
Fix exception reported by diginzm
This commit is contained in:
parent
497eb867c6
commit
c9eae7bfbf
@ -28,7 +28,7 @@ def nginx_authentication():
|
||||
response = flask.Response()
|
||||
response.headers['Auth-Status'] = status
|
||||
response.headers['Auth-Error-Code'] = code
|
||||
if int(flask.request.headers['Auth-Login-Attempt']) < 10:
|
||||
if int(flask.request.headers('Auth-Login-Attempt',0)) < 10:
|
||||
response.headers['Auth-Wait'] = '3'
|
||||
return response
|
||||
raw_password = urllib.parse.unquote(headers['Auth-Pass']) if 'Auth-Pass' in headers else ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user