Re: /login redirecting to /login_form

espen <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
Just mentioning this in case it is what you planned to use it for

adding /edit  (or /base_edit, maybe) to the url will send you to the edit page after login

(in case you use case was to 1) login 2) edit the page you are at)

Espen


4. okt. 2014 kl. 08:49 skrev Dieter Maurer [via Plone] <ml-node+s293351n7572597h60-PKuAHvtXa09l57MIdRCFDg@public.gmane.org>:

> Carsten Agger <[hidden email]> writes: 
> > According to this page: 
> > 
> > http://docs.plone.org/develop/plone/sessions/login.html
> > 
> > you should be able to login and return to the original page by appending 
> > /login to the end of the URL. 
> 
> This approach must have used some magic (likely the information about 
> the request referer) -- and as with all magic, there is the danger that 
> it does not work in some situations (for example, it is rumored that 
> in some situations, the request referer is not available). 
> Those cases can make the life difficult (as they happen only in special 
> situations, their analysis is difficult). And therefore, people may dislike 
> magic and prefer a reliable though less comfortable behavior. 
> This might be the reason for the change you observe. 
> 
> Espen already mentioned one approach to make "referer" based login 
> redirection again available in your system. 
> 
> However, the more comfortable approach likely is to forget 
> "appending '/login' to the url" completely and instead use an (intelligent) 
> action to log in. Rather than manually editing the browser's 
> address input field, the user sees on its page an interaction element 
> (link or button) "login" and when it presses this element, he is 
> redirected to "login_form" with the "came_from" parameter containing 
> the original url. It is this way Plone tries to support login. 
> 
> 
> ------------------------------------------------------------------------------ 
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer 
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports 
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper 
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer 
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________ 
> Plone-Users mailing list 
> [hidden email] 
> https://lists.sourceforge.net/lists/listinfo/plone-users
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://plone.293351.n2.nabble.com/login-redirecting-to-login-form-tp7572593p7572597.html
> To start a new topic under General Questions, email ml-node+s293351n293352h65-PKuAHvtXa09l57MIdRCFDg@public.gmane.org 
> To unsubscribe from Plone, click here.
> NAML





--
View this message in context: http://plone.293351.n2.nabble.com/login-redirecting-to-login-form-tp7572593p7572603.html
Sent from the General Questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.