Re: auth without password
| From: | Lorenzo Alberton | Date: | Sun, 29 Feb 2004 18:51:28 +0000 |
| Subject: | Re: auth without password | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11020@lists.php.net to get a copy of this message | ||
On Sun, 29 Feb 2004 19:32:56 +0100, Martino wrote:
> Hi,
> I think the answer is no but does anyone knows if and how it's
> possible to use the Auth package to authenticate without providing
> a password? I just want to be able to look up a name in a list, if
> it's in the ilst is authenticated otherwise not.
>
> Thanks!
> Martino
*very* silly trick (not tested):
set the same password (XXX) for all the users, then put
a hidden input tag with that password in your login form:
<input type="text" name="username"/>
<input type="hidden" name="password" value="XXX"/>
HTH
Lorenzo