From 616c65bd459c1ea8f9ee4757d8dbc26424d2cae2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 5 Oct 2011 23:16:55 +0200 Subject: [PATCH] fix regiser/reset --- pandora/user/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/user/views.py b/pandora/user/views.py index 6ed02b1e..68d3ef95 100644 --- a/pandora/user/views.py +++ b/pandora/user/views.py @@ -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')