diff options
| author | rr- | 2016-09-24 08:37:36 +0200 |
|---|---|---|
| committer | rr- | 2016-09-24 08:38:15 +0200 |
| commit | d1cad99e876910dcf43e50e5bcf198f714622321 (patch) | |
| tree | 6f64a7eb846098cf46458c013f3546ba9fa49865 /server/szurubooru/middleware/authenticator.py | |
| parent | c7d0ffb2120b0b091f2a17dfbebb98d87a7223aa (diff) | |
server/middleware: fix reporting auth errors
Diffstat (limited to 'server/szurubooru/middleware/authenticator.py')
| -rw-r--r-- | server/szurubooru/middleware/authenticator.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/szurubooru/middleware/authenticator.py b/server/szurubooru/middleware/authenticator.py index b78b90e..da370ff 100644 --- a/server/szurubooru/middleware/authenticator.py +++ b/server/szurubooru/middleware/authenticator.py @@ -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))) |