From daf029646e4f56798f65748b28f6f815602dc174 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 7 Sep 2011 23:46:41 -0500 Subject: [PATCH] Also nullify verification key after verifying in the email confirmation step --- mediagoblin/auth/views.py | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.25.1