Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 3418:9b8019f28158
remember where we came from when logging in (patch [SF#1312889])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 07 Oct 2005 04:49:48 +0000 |
| parents | c9d8b1385af7 |
| children | 0ecd0062abfb |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Fri Oct 07 04:42:13 2005 +0000 +++ b/roundup/cgi/actions.py Fri Oct 07 04:49:48 2005 +0000 @@ -1,4 +1,4 @@ -#$Id: actions.py,v 1.48 2005-07-07 06:46:09 richard Exp $ +#$Id: actions.py,v 1.49 2005-10-07 04:49:48 richard Exp $ import re, cgi, StringIO, urllib, Cookie, time, random, csv @@ -888,6 +888,10 @@ # set the session cookie self.client.set_cookie(self.client.user) + # If we came from someplace, go back there + if self.form.has_key('__came_from'): + raise exceptions.Redirect, self.form['__came_from'].value + def verifyLogin(self, username, password): # make sure the user exists try:
