[Cubicweb] post login patch

Vincent Godard vincent at secondweb.fr
Wed Feb 17 18:09:38 CET 2010


Hi there,

since changeset 7b9824d1b734, the request form contains a lot of
values, displayed in the login redirect by _postlogin, leading to a
nasty url.

We propose following simple patch of web/application.py :

diff -r 1e4547bfcc99 web/application.py
--- a/web/application.py Wed Feb 17 13:44:51 2010 +0100
+++ b/web/application.py Wed Feb 17 18:04:51 2010 +0100
@@ -204,7 +204,7 @@
# we can't differentiate actual login of automatic session
# reopening. Is it actually a problem?
self._update_last_login_time(req)
- args = req.form
+ args = {}
args['__message'] = req._('welcome %s !') % req.user.login
if 'vid' in req.form:
args['vid'] = req.form['vid']

Regards,
Vincent, SecondWeb.



More information about the Cubicweb mailing list