Hello all, I have a question about a simple login by users via a loginform on the site.

 

I made a loginform which is in my opinion perfectly ok to authenticate a user on a certain page or folder,

but yet when I try to login I

A: still get the promt for the login, and

B: If a user is not authenticated I get the standard zope authentication error instead of the webpage I made that should tell you "login failed etc."

 

Obviously I must be doing something wrong, I'm hoping someone can help me out with this.

Below is the code and some specs.

 

The login form :

 

 

<form action="test" method="POST">

<input type="Text" name="__ac_name" size="40">

<input type="password" name="__ac_password" size="40">

<input type="submit" name="submit" value="Login">

</form>

 

 

 

The Authentication script :

 

 

<dtml-if "REQUEST['AUTHENTICATED_USER'].getUserName() != 'Anonymous User'">

 

Authenticated, succesfull login

 

 

<dtml-else>

 

Not Authenticated, No Login

 

 

</dtml-if>

 

 

 

I have a custom role for the user,

The security settings are that only this role is able to view the page and can access contents information.

 

I'm running Zope 2.2.4 on a FreeBSD Machine, which is behind an appache server.

 

I really hope someone can help me out with this, because it got me really puzzeld ;)

 

Thanx in advance....

 

Greetings, Menno