When accessing a page anonymously that requires a login, the user is presented with a login form, and when authenticated, the original page they requested. In my currrent environment, the orginal page is presented less the query string. This came_from logic was supposedly fixed to bring the query string forward after a the user authenticated in Plone 2.0.4 (see comment below). It did not appear to work. - Fixed came_from testing when there is a query string (logged_in.py). [geoffd] I updated the logged_in.py based on July 21 update from plonista. Still isn't working. Should this work for all templates automatically or is there coding that's needed in the called template when anonymous accesses it? Apologize if this only pertains to Plone. Gregory
Gregory Gehrich wrote:
When accessing a page anonymously that requires a login, the user is presented with a login form, and when authenticated, the original page they requested. In my currrent environment, the orginal page is presented less the query string.
This came_from logic was supposedly fixed to bring the query string forward after a the user authenticated in Plone 2.0.4 (see comment below). It did not appear to work.
- Fixed came_from testing when there is a query string (logged_in.py). [geoffd]
I updated the logged_in.py based on July 21 update from plonista. Still isn't working. Should this work for all templates automatically or is there coding that's needed in the called template when anonymous accesses it?
Apologize if this only pertains to Plone.
It also pertains to CMF, which has its own list (zope-cmf@zope.org). You likely need to update 'login_form.pt', which is responsible for POSTing the 'came_from' value to 'logged_in.py'. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
Tres Seaver wrote at 2004-9-25 15:32 -0400:
... It also pertains to CMF, which has its own list (zope-cmf@zope.org). You likely need to update 'login_form.pt', which is responsible for POSTing the 'came_from' value to 'logged_in.py'.
A discussion on the Plone list suggests that "login_form" is activated via a "redirect" and this redirect already lacks the query string. If this is true, then the code performing the redirect is already the culprit. -- Dieter
participants (3)
-
Dieter Maurer -
Gregory Gehrich -
Tres Seaver