Personal tools
You are here: Home Products Plone Roadmap #84: Login redirect
Document Actions

#84: Login redirect

Contents
  1. Motivation
  2. Proposal
by Alexander Limi last modified February 21, 2008 - 08:27
Login_form is difficult to remember for endusers in the case they have to type it in the url. A simple python script should redirect to login_form
Proposed by
Alexander Limi
Seconded by
Martin Aspeli
Proposal type
User interface
State
completed

Motivation

When people hide the login link, there should be an easy way to access the login form that they can remember.

Proposal

Add an alias "/login", make sure it is reserved, and handles redirects.

Simple 1 line python script

Posted by David Thornton at May 2, 2006 - 03:25

## Script (Python) "login" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title=Redirects to the login_form passing the originating URL ## request.RESPONSE.redirect(context.portal_url()+'/login_form?came_from='+container.REQUEST['URL1'])

Time to un-defer?

Posted by Jon Stahl at December 27, 2006 - 06:28
If Plone 3.0 is supposed to be a "UI" focused release, then perhaps this is an easy win to roll into Plone 3.0?

Yeah, I agree

Posted by Alexander Limi at December 27, 2006 - 13:31
Lobby the framework list to make it included in 3.0?

Should be as easy as having a script called "login" or "admin" that redirects to login_form (or rename login_form altogether), so you can use that as your append-to-the-URL strategy :)

Wichert has been integrating OpenID, sessions and PAS stuff, I'm sure he knows what the implications of such a thing would be.

Possible breakage

Posted by Wichert Akkerman at December 29, 2006 - 12:53
A simple redirect will probably break the came_from handling; the redirect script needs to take that into account.

This is now in 3.0

Posted by Alexander Limi at December 29, 2006 - 21:58
Courtesy of Martin. :)

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by