aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/views.py
diff options
context:
space:
mode:
authorAndrew Browning <ayleph@thisshitistemp.com>2016-02-21 17:49:53 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2016-02-22 14:43:38 -0800
commit5aa4ab06158b1375ff7f0c45dd67ad7e7d41d956 (patch)
treed65adc3166d84ac71653b352be5b2f72b27624d6 /mediagoblin/auth/views.py
parent062e37899d87054694aa1efd2464733d685f1307 (diff)
downloadmediagoblin-5aa4ab06158b1375ff7f0c45dd67ad7e7d41d956.tar.lz
mediagoblin-5aa4ab06158b1375ff7f0c45dd67ad7e7d41d956.tar.xz
mediagoblin-5aa4ab06158b1375ff7f0c45dd67ad7e7d41d956.zip
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.
Diffstat (limited to 'mediagoblin/auth/views.py')
-rw-r--r--mediagoblin/auth/views.py2
1 files changed, 1 insertions, 1 deletions
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)