Skip to content

Commit

Permalink
Fix user creation with mongoengine 0.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Apr 8, 2015
1 parent 207822b commit 1dbd25d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions udata/core/user/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def create():
form = RegisterForm(MultiDict(data), csrf_enabled=False)
if form.validate():
data['password'] = encrypt_password(data['password'])
del data['password_confirm']
user = datastore.create_user(**data)
print '\nUser created successfully'
print 'User(id=%s email=%s)' % (user.id, user.email)
Expand Down

0 comments on commit 1dbd25d

Please sign in to comment.