[Zope] Login Button?

Michel Pelletier michel@digicool.com
Thu, 17 Jun 1999 10:20:03 -0400


> -----Original Message-----
> From: Phil Harris [mailto:phil@philh.org]
> Sent: Thursday, June 17, 1999 6:35 AM
> To: zope@zope.org
> Subject: [Zope] Login Button?
> 
> 
> Hi all,
> 
> What part of the Zope-mystery would I call to make use of a 
> login button, I
> know how to check for particular access, but I would like to 
> create a page
> that has certain functionality for 'anonymous' but offers 
> more functionality
> if the user authenticates after clicking on a button/link/etc.
> 

This is untested, and possibly wrong, but:

You could make a link to a DTML method with the following DTML:

<!--#raise Unauthorized-->
<!--#/raise-->
<!--#call "RESPONSE.redirect('back_to_the_page_in_question_url')-->

This will prompt the user to login, and if they log in successfully,
redirect them back to the page with all your little <!--#if-->s and such
to check their access privledges.

Make sense?

-Michel

> TIA
> 
> Phil
> phil@philh.org
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>