[Zope-CMF] Users can't authenticate themselves...

Dieter Maurer dieter@handshake.de
Fri, 25 Oct 2002 21:30:07 +0200


Josef Meile writes:
 > I'm trying to help somebody with her new zope site. We started from 
 > the beggining with Zope 2.5.1 and CMF 1.3. I searched on the 
 > newsgroup and found that one can have problems with some versions of 
 > apache, but actually we are not running it. So I don't know why the 
 > custom login form doesn't work. I've tried:
 > 
 > <dtml-if "not portal_membership.isAnonymousUser()">
 >   <dtml-call "RESPONSE.redirect('login_form?
 > afterAction=http://www.mysite.com/foo')">
The logic is wrong:

  You want to redirect to the login form, when the user is anonymous
  and not when it is not.

  Be careful, not to get into an infinite redirect loop.


Dieter