Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-08 22:14:40

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

#3 2008-07-08 23:24:49

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

#4 2008-07-09 13:28:14

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Password Protect

Is their a fix?


~ Cameron

Offline

#5 2008-07-09 13:51:28

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#6 2008-07-09 14:14:09

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Password Protect

Well I can use HTTP Authentication using Htaccess files, and HtPassword.
So how come Textpattern is having problems? x


~ Cameron

Offline

#7 2008-07-09 14:37:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

#8 2008-07-09 15:09:15

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#9 2008-07-09 19:26:24

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

#10 2008-07-09 22:17:40

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Password Protect

To quote myself again:

When PHP is used in CGI-mode, it probably won’t work

Offline

Board footer

Powered by FluxBB