Move verification key generation to view
[mediagoblin.git] / mediagoblin / auth / views.py
index 919aa3cd62d993907c0ccc8ee0cb8c4f35b2a493..6617837171f6dc27cf2e78431f90d0219010c5c0 100644 (file)
@@ -84,6 +84,7 @@ def register(request):
             user.email = email
             user.pw_hash = auth_lib.bcrypt_gen_password_hash(
                 request.POST['password'])
+            user.verification_key = unicode(uuid.uuid4())
             user.save(validate=True)
 
             # log the user in