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')