[Zope] Cookie userfolder - Redirect after login
Trevor Toenjes
zope@toenjes.com
Tue, 12 Feb 2002 17:47:22 -0500
I am testing it myself. More on that in a sec.
I used DTML for the index_html of the top protected folder.
And I set permissions on index_html for login.
<dtml-if "AUTHENTICATED_USER.has_role('yourUserRole')">
<dtml-var "RESPONSE.redirect('tonewfolder')">
</dtml-if>
That works great...
but I cant get CUF to work in subfolders like acl_users works.
Example:
main_folder
| index_html <-- with redirects based on userrole
redirect_folder
|
sub_folder
Links from the redirect folder (after auth) to a sub_folder, get a new Auth
prompt.
I expected normal acquisition of permissions, like acl_users. I cant figure
out why CUF does this.
Have you seen this problem with CUF?
Thanks
Trevor
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Max M
> Sent: Monday, February 11, 2002 4:52 PM
> To: zope@zope.org
> Subject: [Zope] Cookie userfolder - Redirect after login
>
>
> Hi
>
> I am trying out the cookie userfolder. I have a login screen on the
> frontpage that posts username and password to the user folder.
>
> So far so good.
>
> What I want to achieve is that when the user is logged on, he gets
> redirected to a new personal page. Something like the following code:
>
> self.RESPONSE.redirect(AUTHENTICATED_USER + '/dash')
>
> Has anybody got a clue as how to achieve this? I have read the source
> and the documentation of "Cookie User Folder" but cannot really get my
> head around it.
>
> After I send my form data to the user folder what happens then? Which
> method actually get the form data and sets the cookie? AFAIK I send the
> data to the user folder object. But there must be a method that takes
> care of the form data. So I expected to find a '__call__()' method
> defined, but no such luck.
>
> I might be stupid but I cannot figure it out. :-(
>
> regards Max M
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>