aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-02 09:02:13 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-02 09:02:13 -0500
commita77d952aa6659f0291f856495b18a43dd7e28508 (patch)
tree1ad772824b144bd1d6833e708b5ad2344c6957be /mediagoblin/auth
parente0f8487005f4e9adca41648d35bb8dc6db850032 (diff)
downloadmediagoblin-a77d952aa6659f0291f856495b18a43dd7e28508.tar.lz
mediagoblin-a77d952aa6659f0291f856495b18a43dd7e28508.tar.xz
mediagoblin-a77d952aa6659f0291f856495b18a43dd7e28508.zip
No need for a method for generating the verification key as a method
on the class, can just do that in the view
Diffstat (limited to 'mediagoblin/auth')
-rw-r--r--mediagoblin/auth/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py
index 0c125544..e9d75f8b 100644
--- a/mediagoblin/auth/views.py
+++ b/mediagoblin/auth/views.py
@@ -14,6 +14,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import uuid
+
from webob import Response, exc
from mediagoblin.db.util import ObjectId
@@ -195,8 +197,8 @@ def resend_activation(request):
Resend the activation email.
"""
-
- request.user.generate_new_verification_key()
+ request.user['verification_key'] = unicode(uuid.uuid4())
+ request.user.save()
# Copied shamelessly from the register view above.