#84: Login redirect
- Contents
- 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.
Time to un-defer?
Yeah, I agree
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.
Simple 1 line python script
## 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'])