mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-05-26 16:04:08 +00:00
Match return values for Accounts.changePassword and Accounts.changePassword methods.
This commit is contained in:
parent
f00c450a6c
commit
fe13aac602
1 changed files with 2 additions and 0 deletions
|
|
@ -444,6 +444,7 @@ class Auth(APIMixin):
|
|||
request=this.request,
|
||||
user=user,
|
||||
)
|
||||
return {"passwordChanged": True}
|
||||
|
||||
@api_endpoint('forgotPassword')
|
||||
def forgot_password(self, params):
|
||||
|
|
@ -481,6 +482,7 @@ class Auth(APIMixin):
|
|||
user.save()
|
||||
auth.login(this.request, user)
|
||||
self.update_subs(user.pk)
|
||||
return {"userId": get_meteor_id(this.request.user)};
|
||||
|
||||
|
||||
API.register([Users, LoginPublication, Auth])
|
||||
|
|
|
|||
Loading…
Reference in a new issue