Skip to content

Commit ee5dcc5

Browse files
author
Richard Jones
committed
less specific messages for login failures (thanks Chris Withers)
1 parent 0ac5693 commit ee5dcc5

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Fixed:
3333
- fixed history display when "ascending"
3434
- removed references to py2.3+ boolean values (sf bug 995682)
3535
- fix static file path normalisation in security check (thanks David Linke)
36+
- less specific messages for login failures (thanks Chris Withers)
3637

3738

3839
2004-07-21 0.7.6

doc/index.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ Mitchell Surface,
133133
Mike Thompson,
134134
Martin Uzak,
135135
Darryl VanDorp,
136-
J Vickroy.
136+
J Vickroy,
137+
Chris Withers.
137138

138139

139140

roundup/cgi/actions.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: actions.py,v 1.36 2004-07-28 02:29:45 richard Exp $
1+
#$Id: actions.py,v 1.37 2004-08-07 22:17:11 richard Exp $
22

33
import re, cgi, StringIO, urllib, Cookie, time, random
44

@@ -843,15 +843,14 @@ def handle(self):
843843
self.client.userid = self.db.user.lookup(self.client.user)
844844
except KeyError:
845845
name = self.client.user
846-
self.client.error_message.append(self._('No such user "%(name)s"')
847-
%locals())
846+
self.client.error_message.append(self._('Ivalid login'))
848847
self.client.make_user_anonymous()
849848
return
850849

851850
# verify the password
852851
if not self.verifyPassword(self.client.userid, password):
853852
self.client.make_user_anonymous()
854-
self.client.error_message.append(self._('Incorrect password'))
853+
self.client.error_message.append(self._('Invalid login'))
855854
return
856855

857856
# Determine whether the user has permission to log in.

0 commit comments

Comments
 (0)