mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-02 16:35:40 +00:00
Fix #238
This commit is contained in:
parent
060e0917bc
commit
fdf849744b
@ -118,7 +118,7 @@ def login_via_authorization_header(request):
|
|||||||
if auth_header:
|
if auth_header:
|
||||||
auth_header = auth_header.replace('Basic ', '', 1)
|
auth_header = auth_header.replace('Basic ', '', 1)
|
||||||
try:
|
try:
|
||||||
auth_header = base64.b64decode(auth_header)
|
auth_header = str(base64.b64decode(auth_header), 'utf-8')
|
||||||
username,password = auth_header.split(":")
|
username,password = auth_header.split(":")
|
||||||
except TypeError as e:
|
except TypeError as e:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user