fix regiser/reset

This commit is contained in:
j 2011-10-05 23:16:55 +02:00
parent 774f0abceb
commit 616c65bd45

View file

@ -178,7 +178,7 @@ def signup(request):
user = authenticate(username=form.data['username'],
password=form.data['password'])
login(request, user)
user_json = models.get_user_json(user)
user_json = models.init_user(user)
response = json_response({
'user': user_json
}, text='account created')
@ -226,7 +226,7 @@ def resetPassword(request):
user = authenticate(username=user.username, password=data['password'])
login(request, user)
user_json = models.get_user_json(user)
user_json = models.init_user(user)
response = json_response({
'user': user_json
}, text='password reset')