Re: [PHPLIB] Self registration From: Massimiliano Masserelli (negro <email protected>)
Date: 10/29/99

On Fri, Oct 29, 1999 at 01:26:28PM +0200, Kristian Köhntopp wrote:

>> When the user registered once, he must be able to log in with his
>> username and password without going through the process of the
>> registration again.
 KK> Set a cookie different from the session cookie, which contains for
 KK> example the username. Create an auth_preauth() function which always
 KK> returns false, so that the normal login screen appears. In that
 KK> function set $this->mode = "log", if that cookie is already present.
 KK> Additionally, make "mode" part of Auths persistent slots.

I don't want to rely on cookies, here in Italy they've been demonized a
lot. Anyway, I know my implementation is the only one possible. It is
just an example and it needs no cookies or other changes to current
PHPLIB implementation.

When I'll find some time, I'll hack into auth.inc and try to provide
a more "general" setup, based on actual "reg" mode, but at the moment
I'm quite busy, and there are a couple of classes I'd like to commit
(a wizard and i18n support) but I can't find the time to document them
properly.

Bye.

--
     Massimiliano Masserelli       |     URL:    http://www.interim.it/
     Internet Images S.r.l.        |     Tel:    +39-051-3390671
     vicolo Viazzolo, 3            |     Fax:    +39-051-557890
     40124 - Bologna - Italy       |
-------------------------------------------------------------------------------
What do you have when you have six lawyers buried up to their necks in sand?
Not enough sand.
-
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.