|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 |
|
20 | 20 | import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes |
21 | 21 | import base64, Cookie, time |
@@ -521,19 +521,19 @@ def login(self, message=None): |
521 | 521 | <tr><td colspan=2><em>marked items</em> are optional...</td></tr> |
522 | 522 | <form action="newuser_action" method=POST> |
523 | 523 | <tr><td align=right><em>Name: </em></td> |
524 | | - <td><input name="__newuser_realname"></td></tr> |
| 524 | + <td><input name="realname"></td></tr> |
525 | 525 | <tr><td align=right><em>Organisation: </em></td> |
526 | | - <td><input name="__newuser_organisation"></td></tr> |
| 526 | + <td><input name="organisation"></td></tr> |
527 | 527 | <tr><td align=right>E-Mail Address: </td> |
528 | | - <td><input name="__newuser_address"></td></tr> |
| 528 | + <td><input name="address"></td></tr> |
529 | 529 | <tr><td align=right><em>Phone: </em></td> |
530 | | - <td><input name="__newuser_phone"></td></tr> |
| 530 | + <td><input name="phone"></td></tr> |
531 | 531 | <tr><td align=right>Preferred Login name: </td> |
532 | | - <td><input name="__newuser_username"></td></tr> |
| 532 | + <td><input name="username"></td></tr> |
533 | 533 | <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> |
535 | 535 | <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> |
537 | 537 | <tr><td></td> |
538 | 538 | <td><input type="submit" value="Register"></td></tr> |
539 | 539 | </form> |
@@ -657,13 +657,12 @@ def main(self, dre=re.compile(r'([^\d]+)(\d+)'), |
657 | 657 | if action == 'login_action': |
658 | 658 | return self.login_action() |
659 | 659 |
|
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 | | - |
665 | 660 | # allow anonymous people to register |
666 | 661 | 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() |
667 | 666 | return self.newuser_action() |
668 | 667 |
|
669 | 668 | # make sure totally anonymous access is OK |
@@ -849,6 +848,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0): |
849 | 848 |
|
850 | 849 | # |
851 | 850 | # $Log: not supported by cvs2svn $ |
| 851 | +# Revision 1.42 2001/10/23 23:56:03 richard |
| 852 | +# HTML typo |
| 853 | +# |
852 | 854 | # Revision 1.41 2001/10/23 23:52:35 richard |
853 | 855 | # Fixed lock-out logic, thanks Roch'e for pointing out the problems. |
854 | 856 | # |
|
0 commit comments