diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-11-20 20:15:21 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-11-20 20:15:21 +0100 |
commit | 5dbeda8a0f2953aed13521b6e87376327e8302e0 (patch) | |
tree | 4ce84f27a767229a7b5b6acf5e310001ae424a65 | |
parent | e51af0e62000b190d6aa828719080a96886210fb (diff) | |
download | mediagoblin-5dbeda8a0f2953aed13521b6e87376327e8302e0.tar.lz mediagoblin-5dbeda8a0f2953aed13521b6e87376327e8302e0.tar.xz mediagoblin-5dbeda8a0f2953aed13521b6e87376327e8302e0.zip |
Fix redirect to logical path
redirects should in nearly all cases go to a logical path
like 'mediagoblin.auth.login' and not to an absolute path
like "/auth/login".
-rw-r--r-- | mediagoblin/auth/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index b3a70d46..d01861d1 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -202,7 +202,7 @@ def resend_activation(request): messages.ERROR, _('You must be logged in so we know who to send the email to!')) - return redirect(request, "/auth/login") + return redirect(request, 'mediagoblin.auth.login') if request.user["email_verified"]: messages.add_message( |