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.
This commit is contained in:
Andrew Browning 2016-02-21 17:49:53 -05:00 committed by Christopher Allan Webber
parent 062e37899d
commit 5aa4ab0615

View File

@ -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)