![]() |
|
#1
|
|||
|
|||
.htaccess with e-mail address and passwordHey,
Is there anyway to have a directory proctected using .htaccess but instead of creating usernames and passwords they have to use thier e-mail address as the username and thier e-mail address password as the password Many thanks |
|
#2
|
|||
|
|||
Re: .htaccess with e-mail address and passwordMake the username their email address and the password the email password maybe? Or do you mean for many accounts?
|
|
#3
|
|||
|
|||
Re: .htaccess with e-mail address and passwordI was hoping to create it for many users.
|
|
#4
|
|||
|
|||
Re: .htaccess with e-mail address and passwordWrite a php file that re-writes the .htaccess file and inserts whatever username/password you specify in a form?
|
|
#5
|
|||
|
|||
Re: .htaccess with e-mail address and passwordAmaroq is correct. If you are on a linux box, all you would need is to create a page with a form on it, that has a field for the username and password. The form would then contact the PHP script, and the script would run htpasswd and then paste those results into your htpasswd file.
Running the htpasswd command is very important, because that generates the hash for the password you specified. The htpasswd is a command that is found commonly on linux boxes that have apache installed. Aside from that, you could always manually enter them in. HTH |
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help wit my source code compiler errors | Krandygrl00 | C++ Forum | 1 | 06-Jun-2005 08:14 |
| Can't view pages from another machine on the Intranet | aevans | Apache Web Server Forum | 9 | 14-May-2004 02:26 |
| Hide password | skyloon | MySQL / PHP Forum | 2 | 08-Jul-2003 08:51 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The