Provide a next= url when we require logging in
This commit is contained in:
parent
efb291d633
commit
7eba0306d8
@ -37,7 +37,9 @@ def require_active_login(controller):
|
|||||||
# TODO: Indicate to the user that they were redirected
|
# TODO: Indicate to the user that they were redirected
|
||||||
# here because an *active* user is required.
|
# here because an *active* user is required.
|
||||||
return exc.HTTPFound(
|
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)
|
return controller(request, *args, **kwargs)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user