Martin Koekenberg wrote:
hello,
I've a loginscreen (Session based User folder).
In my index_html template is the folowing code :
<dtml-if expr="AUTHENTICATED_USER.getUserName() == 'Anonymous User'"> <dtml-call expr="RESPONSE.redirect('/login', lock=1)"> </dtml-if> /login is the login page. But how can I automaticaly jump back (after a succesfull login) to de page that was requested before the loginscreen ?
Well...why didn't you redirect the user from your login-page after validation of the data to the desired page..? Usually you use a form to give the user a way to enter their logindata and you process this data with the method in the action-attribute of your form tag. And an advice: Try to use python scripts for logic, not dtml. Otherwise the code of your site becomes a mess :-)
Example:
I enter the site (http://beta.swol1894.nl). That page will forward me to the login. After a succesfull login I want a jump to the homepage. (That page send me to the login).
Who know's a solution for this ?
Greetings,
Martin Koekenberg
------------------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman-20/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman-20/listinfo/zope-announce http://mail.zope.org/mailman-20/listinfo/zope-dev )