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".
This commit is contained in:
Elrond 2011-11-20 20:15:21 +01:00
parent e51af0e620
commit 5dbeda8a0f

View File

@ -202,7 +202,7 @@ def resend_activation(request):
messages.ERROR, messages.ERROR,
_('You must be logged in so we know who to send the email to!')) _('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"]: if request.user["email_verified"]:
messages.add_message( messages.add_message(