changeset 866:b270396abba9

say 'login failed', not 'wrong password' because it can have other reasons, too
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 20 Jun 2006 21:07:03 +0200
parents 6127a2617fc8
children 5cb34cdcacc8
files MoinMoin/action/login.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/login.py	Tue Jun 20 21:06:21 2006 +0200
+++ b/MoinMoin/action/login.py	Tue Jun 20 21:07:03 2006 +0200
@@ -51,11 +51,10 @@
             else:
                 password = form.get('password',[None])[0]
                 if not password:
-                    error = _("Missing password. Please enter user name and"
-                             " password.")
+                    error = _("Missing password. Please enter user name and password.")
                 else:
                     if not request.user.valid:
-                        error = _("Sorry, wrong password.")
+                        error = _("Sorry, login failed.")
 
             return self.page.send_page(request, msg=error)