Provide a next= url when we require logging in

This commit is contained in:
Christopher Allan Webber 2011-04-23 08:46:02 -05:00
parent efb291d633
commit 7eba0306d8

View File

@ -37,7 +37,9 @@ def require_active_login(controller):
# TODO: Indicate to the user that they were redirected
# here because an *active* user is required.
return exc.HTTPFound(
location=request.urlgen("mediagoblin.auth.login"))
location="%s?next=%s" % (
request.urlgen("mediagoblin.auth.login"),
request.path_info))
return controller(request, *args, **kwargs)