Jay's avatar
shared this idea 2 years ago
idea

Admin folder with basic login/password in .htaccess

It would be great to have a way to add an Admin folder with basic login/password in .htaccess

This is inappropriate

6 other people like this idea.

Best solution from the company

Thanks stevejt!

I'll have to look into how to do this in Windows. I don't have a Windows machine, but I can use my friends. Does anyone know how to do this in Windows+PHP? If not I'll look into it, see what I can find, and if all else fails, just put a comment that this feature isn't supported by Windows yet.
Oscar Godson Oscar Godson (Official Rep) 2 years ago
I thought since I am making my rounds through these topics and letting people know about the private beta that is fully functional now I would update you on this feature.

This feature wont be able to make it into the 1.4 final release however, thanks to stevejt above I will working on getting this in for the 1.4.1-1.4.5 release. Most likely it will be in the 1.4.1 release unless there are urgent bugs that need to be worked out.

However, if you feel comfortable implementing this yourself, or anyone else, I can send you the current private beta code from my info at projectdeploy dot org and you, or someone else, can implement this and I will put it into the whatever release is next or if it was soon enough, the 1.4 release!
Oscar Godson Oscar Godson (Official Rep) 2 years ago

Login to reply


Oscar Godson

My main question is how should the password be created? Through Deploy* or make a default username and password and then you can create your own password after with a link? If I were to generate a username and password this might take more time to implement?


hmmm... I could also use an iframe in a thickbox to a site already generating them...
contemplating I'm contemplating
Inappropriate?

The only purpose of an Admin folder is to be protect, so I tink Deploy has to ask for one or more username/password couples and create the right .htaccess and .htpaswd with encrypted passwords.


The idea is, if the checkbox "Admin directory" is checked, two inputs Username/password appear With a +. Clicking the + add two more inputs etc.. This way, your interface remains clean if the user doesn't care about Admin directory.
stevejt

If you are running this on *nix you can call htpasswd to generate the password for you: exec("htpasswd -nb $username $password", $result);
Inappropriate?
Oscar Godson

Thanks stevejt!


I'll have to look into how to do this in Windows. I don't have a Windows machine, but I can use my friends. Does anyone know how to do this in Windows+PHP? If not I'll look into it, see what I can find, and if all else fails, just put a comment that this feature isn't supported by Windows yet.
Thankful I'm Thankful
Inappropriate?
Oscar Godson

I thought since I am making my rounds through these topics and letting people know about the private beta that is fully functional now I would update you on this feature.


This feature wont be able to make it into the 1.4 final release however, thanks to stevejt above I will working on getting this in for the 1.4.1-1.4.5 release. Most likely it will be in the 1.4.1 release unless there are urgent bugs that need to be worked out.


However, if you feel comfortable implementing this yourself, or anyone else, I can send you the current private beta code from my info at projectdeploy dot org and you, or someone else, can implement this and I will put it into the whatever release is next or if it was soon enough, the 1.4 release!
confident I'm confident
Inappropriate?

Login to reply