diff roundup/cgi/actions.py @ 2657:534f78a2e400

less specific messages for login failures (thanks Chris Withers)
author Richard Jones <richard@users.sourceforge.net>
date Sat, 07 Aug 2004 22:18:41 +0000
parents 1df7d4a41da4
children 9ecca789544f
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Mon Aug 02 22:41:12 2004 +0000
+++ b/roundup/cgi/actions.py	Sat Aug 07 22:18:41 2004 +0000
@@ -1,4 +1,4 @@
-#$Id: actions.py,v 1.36 2004-07-28 02:29:45 richard Exp $
+#$Id: actions.py,v 1.37 2004-08-07 22:17:11 richard Exp $
 
 import re, cgi, StringIO, urllib, Cookie, time, random
 
@@ -843,15 +843,14 @@
             self.client.userid = self.db.user.lookup(self.client.user)
         except KeyError:
             name = self.client.user
-            self.client.error_message.append(self._('No such user "%(name)s"')
-                %locals())
+            self.client.error_message.append(self._('Ivalid login'))
             self.client.make_user_anonymous()
             return
 
         # verify the password
         if not self.verifyPassword(self.client.userid, password):
             self.client.make_user_anonymous()
-            self.client.error_message.append(self._('Incorrect password'))
+            self.client.error_message.append(self._('Invalid login'))
             return
 
         # Determine whether the user has permission to log in.

Roundup Issue Tracker: http://roundup-tracker.org/