From: Mark Wooding Date: Sun, 25 May 2014 08:50:36 +0000 (+0100) Subject: httpauth.py: Capitalize the login whinges. X-Git-Tag: 1.1.0~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/commitdiff_plain/cced9f6771fed9301a18b0cd051ba94a0ccb9119 httpauth.py: Capitalize the login whinges. The look better like this, and match the list whinges. --- diff --git a/httpauth.py b/httpauth.py index 7fdc687..0fdad76 100644 --- a/httpauth.py +++ b/httpauth.py @@ -230,16 +230,16 @@ def mint_token(user): ## Long messages for reasons why one might have been redirected back to the ## login page. LOGIN_REASONS = { - 'AUTHFAIL': 'incorrect user name or password', - 'NOAUTH': 'not authenticated', - 'NONONCE': 'missing nonce', - 'BADTOKEN': 'malformed token', - 'BADTIME': 'invalid timestamp', - 'BADNONCE': 'nonce mismatch', - 'EXPIRED': 'session timed out', - 'BADTAG': 'incorrect tag', - 'NOUSER': 'unknown user name', - 'LOGOUT': 'explicitly logged out', + 'AUTHFAIL': 'Incorrect user name or password', + 'NOAUTH': 'Not authenticated', + 'NONONCE': 'Missing nonce', + 'BADTOKEN': 'Malformed token', + 'BADTIME': 'Invalid timestamp', + 'BADNONCE': 'Nonce mismatch', + 'EXPIRED': 'Session timed out', + 'BADTAG': 'Incorrect tag', + 'NOUSER': 'Unknown user name', + 'LOGOUT': 'Explicitly logged out', None: None }