Re: [Phplib-users] How to implement self registration
Brought to you by:
nhruby,
richardarcher
From: Joe S. <jo...@be...> - 2002-10-21 17:54:53
|
On Mon, Oct 21, 2002 at 09:19:05AM -0400, Rob Hutton wrote: > I don't see that again=reg has been implemented in any of the examples > except for a very limited way on the sourceforge site. Is there an example > of self registration anywhere? Here's a simple one: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phplib/php-lib/php/local.inc?rev=1.29&content-type=text/vnd.viewcvs-markup and another: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpslash/phpslash-ft/class/slashAuthCR.class?rev=1.23&content-type=text/vnd.viewcvs-markup > If not, what is the theory. You call login_if('reg') and then > auth_registerform() is called. But what is the correct way to handle the > data returned? In my mind, it would have to occur first thing in the auth > list, or different variable names other than those used on the login form. > Or is that what auth_doregister() is for. If so, why is it treated > differently than auth_validatelogin()? Give me some guidlines and I will > write it into the examples then move it to my needs... > In the second example it is called with ?mode=reg in the url. Gian just added login_if('reg') as a possibility. The original design that Kristian posted always displayed the reg form if reg mode was enabled. The reg form also functioned as a login form if the username and password were acceptable. have fun, Joe > Rob Hutton > Web Safe > www.wsafe.com > |