[PHPLIB] Would like to see Examples of User Self-Registration? From: Daniel Cunningham (daniel <email protected>)
Date: 10/27/99

Greetings, All:

I hope to keep this short. I am new to this list, but not to
programming. I have found phplib to be very useful, especially
in the easy setup for page protection.

However, I am stuck on something: In addition to the login
form and processing via my overrides of the auth_loginform()
and auth_validatelogin() and customization of the loginform.ihtml,
I'd like for my users to be able to push a button and go to another
form and setup a username/password for their account. In
other words, self-registration, using a form, and overrides of the
auth_registerform() and auth_doregister() methods.

There are great examples of the former ( auth_loginform() and
auth_validatelogin() ) but not the latter ( auth_registerform()
and auth_doregister() ). There are also examples for an admin
type user to add user records, but that's not what we want.

We just want a form with straight-forward self-service non-privileged
"enter your own test username and password" , and once we've
validated the username against other entries in the auth_users table,
we would setup a username/password and priv="user" entry.

And also hopefully synchronize this auth_user entry with the
existing session ID so that the user is not forced to re-login via
the auth_login() and auth_validatelogin() methods.

I have also been back through the archives for several months,
and have seen some hints, but no specific examples.

I could really use some good examples. If anyone has some
specific examples they can point me towards, or send by email,
I'd VERY much appreciate it. I'd be more than happy to summarize
and re-post back for other to use as well.

Thanks in advance if any of you can help.

-- Daniel Cunningham
   http://www.dpc-tech.com/service

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.