Skip to content

Commit d8fdd05

Browse files
author
Richard Jones
committed
More fixes to lockout logic.
1 parent 49f542b commit d8fdd05

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

roundup/cgi_client.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: cgi_client.py,v 1.42 2001-10-23 23:56:03 richard Exp $
18+
# $Id: cgi_client.py,v 1.43 2001-10-24 00:01:42 richard Exp $
1919

2020
import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes
2121
import base64, Cookie, time
@@ -521,19 +521,19 @@ def login(self, message=None):
521521
<tr><td colspan=2><em>marked items</em> are optional...</td></tr>
522522
<form action="newuser_action" method=POST>
523523
<tr><td align=right><em>Name: </em></td>
524-
<td><input name="__newuser_realname"></td></tr>
524+
<td><input name="realname"></td></tr>
525525
<tr><td align=right><em>Organisation: </em></td>
526-
<td><input name="__newuser_organisation"></td></tr>
526+
<td><input name="organisation"></td></tr>
527527
<tr><td align=right>E-Mail Address: </td>
528-
<td><input name="__newuser_address"></td></tr>
528+
<td><input name="address"></td></tr>
529529
<tr><td align=right><em>Phone: </em></td>
530-
<td><input name="__newuser_phone"></td></tr>
530+
<td><input name="phone"></td></tr>
531531
<tr><td align=right>Preferred Login name: </td>
532-
<td><input name="__newuser_username"></td></tr>
532+
<td><input name="username"></td></tr>
533533
<tr><td align=right>Password: </td>
534-
<td><input type="password" name="__newuser_password"></td></tr>
534+
<td><input type="password" name="password"></td></tr>
535535
<tr><td align=right>Password Again: </td>
536-
<td><input type="password" name="__newuser_confirm"></td></tr>
536+
<td><input type="password" name="confirm"></td></tr>
537537
<tr><td></td>
538538
<td><input type="submit" value="Register"></td></tr>
539539
</form>
@@ -657,13 +657,12 @@ def main(self, dre=re.compile(r'([^\d]+)(\d+)'),
657657
if action == 'login_action':
658658
return self.login_action()
659659

660-
# if we don't have a login and anonymous people aren't allowed to
661-
# register, then spit up the login form
662-
if self.ANONYMOUS_REGISTER == 'deny' and self.user is None:
663-
return self.login()
664-
665660
# allow anonymous people to register
666661
if action == 'newuser_action':
662+
# if we don't have a login and anonymous people aren't allowed to
663+
# register, then spit up the login form
664+
if self.ANONYMOUS_REGISTER == 'deny' and self.user is None:
665+
return self.login()
667666
return self.newuser_action()
668667

669668
# make sure totally anonymous access is OK
@@ -849,6 +848,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0):
849848

850849
#
851850
# $Log: not supported by cvs2svn $
851+
# Revision 1.42 2001/10/23 23:56:03 richard
852+
# HTML typo
853+
#
852854
# Revision 1.41 2001/10/23 23:52:35 richard
853855
# Fixed lock-out logic, thanks Roch'e for pointing out the problems.
854856
#

0 commit comments

Comments
 (0)