changeset 6049:a9567770da68

moin auth: give error msg when user name is missing
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 06 Jun 2014 15:54:09 +0200
parents ee7209311a0e
children 274a7f675261
files MoinMoin/auth/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/__init__.py	Fri Jun 06 15:52:35 2014 +0200
+++ b/MoinMoin/auth/__init__.py	Fri Jun 06 15:54:09 2014 +0200
@@ -243,6 +243,8 @@
 
         if username and not password:
             return ContinueLogin(user_obj, _('Missing password. Please enter user name and password.'))
+        if not username and password:
+            return ContinueLogin(user_obj, _('Missing user name. Please enter user name and password.'))
 
         check_surge_protect(request, action='auth-ip')
         check_surge_protect(request, action='auth-name', username=username)