From: Christopher Allan Webber Date: Thu, 8 Sep 2011 04:46:41 +0000 (-0500) Subject: Also nullify verification key after verifying in the email confirmation step X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=daf029646e4f56798f65748b28f6f815602dc174;p=mediagoblin.git Also nullify verification key after verifying in the email confirmation step --- diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index 1c010372..0cb3963c 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -154,7 +154,10 @@ def verify_email(request): if user and user['verification_key'] == unicode(request.GET['token']): user['status'] = u'active' user['email_verified'] = True + user[u'verification_key'] = None + user.save() + messages.add_message( request, messages.SUCCESS,