Mongo removal: Remove the validate=True arg to obj.save()
all callers were forced to use validate=True anyway. So remove this useless stuff.
This commit is contained in:
@@ -82,7 +82,7 @@ def register(request):
|
||||
user.pw_hash = auth_lib.bcrypt_gen_password_hash(
|
||||
request.form['password'])
|
||||
user.verification_key = unicode(uuid.uuid4())
|
||||
user.save(validate=True)
|
||||
user.save()
|
||||
|
||||
# log the user in
|
||||
request.session['user_id'] = unicode(user.id)
|
||||
|
||||
Reference in New Issue
Block a user