projects
/
mediagoblin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move verification key generation to view
[mediagoblin.git]
/
mediagoblin
/
auth
/
views.py
diff --git
a/mediagoblin/auth/views.py
b/mediagoblin/auth/views.py
index 919aa3cd62d993907c0ccc8ee0cb8c4f35b2a493..6617837171f6dc27cf2e78431f90d0219010c5c0 100644
(file)
--- a/
mediagoblin/auth/views.py
+++ b/
mediagoblin/auth/views.py
@@
-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