chiark / gitweb /
httpauth.py: Capitalize the login whinges.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 25 May 2014 08:50:36 +0000 (09:50 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 11 Jun 2014 13:11:29 +0000 (14:11 +0100)
The look better like this, and match the list whinges.

httpauth.py

index 7fdc687441d1f28498d0173b23c38cb86efe7f4e..0fdad7666346e82e83407b492cf929d5a8905000 100644 (file)
@@ -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
 }