Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Password Protect
I added this to my page: <txp:password_protect login=“admin” pass=“password” />
But when I login it just keeps saying incorrect? I’m 100% sure im typing it correctly too, is their any reason why it would keep say its wrong? x
~ Cameron
Offline
#2 2008-07-08 23:16:01
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Password Protect
Apparently it’s a server setting, see this post and read on to find Ruud’s answer.
Offline
Re: Password Protect
Hmm I still don’t understand! What exactly is the problem?
The code itself is clearly work, it just keeps saying the name/password is incorrect?? Really annoying!
Last edited by driz (2008-07-09 01:20:18)
~ Cameron
Offline
Re: Password Protect
Is their a fix?
~ Cameron
Offline
Re: Password Protect
it very much depends on your server setup. When PHP is used in CGI-mode, it probably won’t work, although we’ve made some improvements for people using Lighttpd and people using FCGI.
There is no fix possible in Textpattern. The problem lies deeper, in the server/PHP setup.
Offline
Re: Password Protect
Well I can use HTTP Authentication using Htaccess files, and HtPassword.
So how come Textpattern is having problems? x
~ Cameron
Offline
Re: Password Protect
You might be able to use this script.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Password Protect
It’s not a Textpattern problem, but a limitation of how PHP is used on your server. No PHP script can use HTTP authentication in that situation. Htaccess files work on a different level, before PHP is even used to process the requested page.
Offline
Re: Password Protect
Okies so what is the problem on the server-side so that I can contact my webhost and tell them to enable it! x
~ Cameron
Offline
Re: Password Protect
To quote myself again:
When PHP is used in CGI-mode, it probably won’t work
Offline
Pages: 1