From 42876d67675c68fa4bacc579925303fd1933ffc1 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 24 Oct 2001 00:01:42 +0000 Subject: [PATCH] More fixes to lockout logic. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@337 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi_client.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py index 88bdc55..3629ee1 100644 --- a/roundup/cgi_client.py +++ b/roundup/cgi_client.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: cgi_client.py,v 1.42 2001-10-23 23:56:03 richard Exp $ +# $Id: cgi_client.py,v 1.43 2001-10-24 00:01:42 richard Exp $ import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes import base64, Cookie, time @@ -521,19 +521,19 @@ class Client: marked items are optional...
Name: - + Organisation: - + E-Mail Address: - + Phone: - + Preferred Login name: - + Password: - + Password Again: - +
@@ -657,13 +657,12 @@ class Client: if action == 'login_action': return self.login_action() - # if we don't have a login and anonymous people aren't allowed to - # register, then spit up the login form - if self.ANONYMOUS_REGISTER == 'deny' and self.user is None: - return self.login() - # allow anonymous people to register if action == 'newuser_action': + # if we don't have a login and anonymous people aren't allowed to + # register, then spit up the login form + if self.ANONYMOUS_REGISTER == 'deny' and self.user is None: + return self.login() return self.newuser_action() # make sure totally anonymous access is OK @@ -849,6 +848,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0): # # $Log: not supported by cvs2svn $ +# Revision 1.42 2001/10/23 23:56:03 richard +# HTML typo +# # Revision 1.41 2001/10/23 23:52:35 richard # Fixed lock-out logic, thanks Roch'e for pointing out the problems. # -- 2.30.2