diff options
author | Andrew Browning <ayleph@thisshitistemp.com> | 2016-02-21 17:49:53 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-02-22 14:43:38 -0800 |
commit | 5aa4ab06158b1375ff7f0c45dd67ad7e7d41d956 (patch) | |
tree | d65adc3166d84ac71653b352be5b2f72b27624d6 /mediagoblin/auth/views.py | |
parent | 062e37899d87054694aa1efd2464733d685f1307 (diff) | |
download | mediagoblin-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.py | 2 |
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) |