mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/middleware: fix reporting auth errors
This commit is contained in:
@ -36,6 +36,7 @@ def _get_user(ctx):
|
||||
msg = 'Basic authentication header value are not properly formed. ' \
|
||||
+ 'Supplied header {0}. Got error: {1}'
|
||||
raise HttpBadRequest(
|
||||
'ValidationError',
|
||||
msg.format(ctx.get_header('Authorization'), str(err)))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user