From 5aa4ab06158b1375ff7f0c45dd67ad7e7d41d956 Mon Sep 17 00:00:00 2001 From: Andrew Browning Date: Sun, 21 Feb 2016 17:49:53 -0500 Subject: [PATCH] Fix issue 5422 Resend verification fails If a user was logged in and already verified, the resend_verification link would cause a server error. This fix addresses that by using the correct syntax to query the username from the request. --- mediagoblin/auth/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index 03a46f7b..2f95fd81 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -195,7 +195,7 @@ def resend_activation(request): messages.ERROR, _("You've already verified your email address!")) - return redirect(request, "mediagoblin.user_pages.user_home", user=request.user['username']) + return redirect(request, "mediagoblin.user_pages.user_home", user=request.user.username) email_debug_message(request) send_verification_email(request.user, request)