PDA

View Full Version : .htpasswd


Unimagined
06-29-2003, 11:47 AM
instead of have the normal login window popup when a user goes to login to a protected directory, how can I make a login page with flash that lets them into the directory using the existing .htpasswd file to check the usernames and passwords?

A simple page that has a User Name text input field, a Password input field, then a enter button that sends the information. How can I make that, and keep the other window from popping up?

freddycodes
06-29-2003, 07:25 PM
I think the best thing you could for that is to use say PHP, to check for some variable that tells it whther the user is logged in, if not, pop up a flash movie in a popup window, and use PHP to encrypt the password so it is compatible with the .htpasswd format and compare them from the authUserFile. Short of building custom modules for apache, that is going to be your best bet.