Re: rtfm me!
| From: | David Robley | Date: | Mon, 23 Oct 2000 03:02:35 +0000 |
| Subject: | Re: rtfm me! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21698@lists.php.net to get a copy of this message | ||
On Mon, 23 Oct 2000, Gary wrote:
> They are going to be stored plain text.
>
> Gary
>
> David Robley wrote:
>
> > On Mon, 23 Oct 2000, Gary wrote:
> > > I need to do the 2 password thing. When someone joins they have to
> > > confirm their password. I'm lost at how to make sure the passwords are
> > > the same. Please refer me to where i need to look in the manual.
> > >
> > > thanks
> > > Gary
> >
> > That rather depends on how your passwords are stored - plain text or
> > encrypted. I'm sure you can deal with the former :-)
> >
> > If the latter, you need to encrypt the supplied password and compare it
> > with the encrypted version in the (wherever it's stored).
> >
OK. Presumably you will have a DB table that has username and password
stored - just do a query on username as provided and get the usename and
password from the DB; if the password as provided doesn't match the one in
the DB then don't let 'em in. Do you need more detail?
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA