From: Andrew Browning Date: Sun, 21 Feb 2016 22:49:53 +0000 (-0500) Subject: Fix issue 5422 Resend verification fails X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5aa4ab06158b1375ff7f0c45dd67ad7e7d41d956;p=mediagoblin.git 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. --- 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)