Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-05-03 02:11:18
- apart
- New Member
- Registered: 2004-12-01
- Posts: 5
Login form for single non-admin password
Hi there.
I want to password protect a textpattern install using <txp:password_protect />
for simplicity. I want only a single user and password, so there’s no need for the brilliance of ign_password_protect
.
However, I would like to have a styled login form to access the protected install. I therefore have a section “face” as my frontpage with a login form, and the other sections protected (I know that leaves some backend issues, but I’m not looking for serious protection here).
My problem: I cannot get the login form to call the passworded section without the pop-up prompt coming up as well. Current code:
<code>
<fieldset>
<form action=”/passwordedsection” method=“post”>
<p><label for=“login”>Name</label>
<input id=“login” type=“text” name=“login” value=”“ class=“edit” /></p>
<p><label for=“pass”>password</label>
<input id=“pass” type=“password” name=“pass” value=”“ class=“edit” /></p>
<p><input type=“submit” name=”“ value=“Log in” class=“publish” /></p>
</fieldset>
</code>
Please help. Many thanks!
Last edited by apart (2006-05-03 02:12:29)
Offline
#2 2006-05-03 03:25:05
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Login form for single non-admin password
That’s not possible with password_protect, I’m afraid, that’s how that tag works (HTTP_AUTH).
Offline
#3 2006-05-03 04:15:42
- apart
- New Member
- Registered: 2004-12-01
- Posts: 5
Re: Login form for single non-admin password
Grrr. I thought that might be the case. Thanks for the reply — your responses to many other questions on these boards have been incredibly helpful to me over the past year or so.
Offline