Re: [phplib] One more time - step by step self registration mode - is this correct? From: Philip Strnad (philip <email protected>)
Date: 04/24/01

Self registration is really not bound that closely to PHPLIB. It's just
that after 7.0 some methods were added to PHPLIB to make self
registration easier since most web sites with users have to let them
register themselves. That being said, I think your outline of what to
do is a step in the right direction, but I can't confirm it because I've
never used the PHPLIB methods in the auth class for setting up a user
registration form. Try it out and see if it works. If it doesn't you
can always go back to the simple approach, which is to write a form that
POSTs to itself and then handles the data entered by the user. If the
data looks ok you can INSERT a row into your users table, setup the
necessary authentication variables, and that's it.

Philip

"Faine, Mark" wrote:
>
> In order to get self registration mode I must complete the following steps.
>
> 1.) change $mode to "reg" in auth.inc
> 2.) create a table with user specific fields
> 3.) create a function auth_registerform() to show a form which contains both
> login and registration forms.
> 4.) create a function auth_doregister() to insert auth information into
> auth_user and user specific information into my newly created user table.
>
> - Is this correct?
>
> -Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>