RE: [phplib] User authentication : user/pass / send email etc. From: Ian Wilson (wilt <email protected>)
Date: 11/27/00

hi,

I'm doing something similar on a site I'm working on at the moment.
It works like this.

The main page is protected by default auth only, this page contains a login
form for those already registered, and a link to the registration page.

All other pages are protected by default auth and perms. There are two
permissions unregistered and registered.

When a user registers an entry is created in auth_user with perms of
'unregistered' and a unique magic number. Any attempt to access a protected
page will bring up perminvalid.ihtml. (this gives a warning and shows the
login form and a link to the registration page.)

When submit on the registration page is pressed an email is generated (use
php mail function)
The body of the message contains a generated link of the format

To complete registration click
http://my.domain/final_reg.php?reg=ff6585688483fe3233

obviously the number at the end is the generated magic number for the user.

final_reg.php in my version then asks the user to renter username and
password. This is validated against the magic number and if ok the perms in
auth_user is upgraded to registered.

I'm still working on how to handle bounced email. Will report back when I
get anywhere.

Wilt.

-----Original Message-----
From: Jørgen Skogstad [mailto:jorgen.skogstad <email protected>]
Sent: 26 November 2000 07:25
To: phplib <email protected>
Subject: [phplib] User authentication : user/pass / send email etc.

Kindest..

I am new to phplib. What I would really like to do is to
force new users to create their own users with valid email.
They should not be authenticated asap ... but they should
get a default mail with their stated information and their
auto-generated password.

By getting this email I have made sure that at least the
user have given a valid email.

Then they should be able to login and do whatever stuff
I give them access to.

Have anyone made this.. and might have some examples on
how I can go about doing this stuff? Would greatly
apriciate your input. ;)

Kindest,
Jørgen Skogstad

---------------------------------------------------------------------
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>