From a1fbeb91a0984f5daf477a8813dc03979d4ae136 Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 10 Feb 2018 14:03:43 +0100 Subject: [PATCH] server/users: fix checking passwords with colons --- server/szurubooru/middleware/authenticator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/middleware/authenticator.py b/server/szurubooru/middleware/authenticator.py index fa492f94..644fe3b3 100644 --- a/server/szurubooru/middleware/authenticator.py +++ b/server/szurubooru/middleware/authenticator.py @@ -24,7 +24,7 @@ def _get_user(ctx: rest.Context) -> Optional[model.User]: 'ValidationError', 'Only basic HTTP authentication is supported.') username, password = base64.decodebytes( - credentials.encode('ascii')).decode('utf8').split(':') + credentials.encode('ascii')).decode('utf8').split(':', 1) return _authenticate(username, password) except ValueError as err: msg = (