forked from 0x2620/pandora
fix regiser/reset
This commit is contained in:
parent
774f0abceb
commit
616c65bd45
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ def signup(request):
|
||||||
user = authenticate(username=form.data['username'],
|
user = authenticate(username=form.data['username'],
|
||||||
password=form.data['password'])
|
password=form.data['password'])
|
||||||
login(request, user)
|
login(request, user)
|
||||||
user_json = models.get_user_json(user)
|
user_json = models.init_user(user)
|
||||||
response = json_response({
|
response = json_response({
|
||||||
'user': user_json
|
'user': user_json
|
||||||
}, text='account created')
|
}, text='account created')
|
||||||
|
@ -226,7 +226,7 @@ def resetPassword(request):
|
||||||
user = authenticate(username=user.username, password=data['password'])
|
user = authenticate(username=user.username, password=data['password'])
|
||||||
login(request, user)
|
login(request, user)
|
||||||
|
|
||||||
user_json = models.get_user_json(user)
|
user_json = models.init_user(user)
|
||||||
response = json_response({
|
response = json_response({
|
||||||
'user': user_json
|
'user': user_json
|
||||||
}, text='password reset')
|
}, text='password reset')
|
||||||
|
|
Loading…
Reference in a new issue