fix: invitation password set (#1795)
(cherry picked from commit f52d5f021e)
This commit is contained in:
parent
7284818af9
commit
2cbcdbb096
2 changed files with 2 additions and 6 deletions
|
|
@ -445,9 +445,7 @@ def change_password(tenant_id, user_id, email, old_password, new_password):
|
|||
|
||||
|
||||
def set_password_invitation(user_id, new_password):
|
||||
changes = {"password": new_password,
|
||||
"invitationToken": None, "invitedAt": None,
|
||||
"changePwdExpireAt": None, "changePwdToken": None}
|
||||
changes = {"password": new_password}
|
||||
user = update(tenant_id=-1, user_id=user_id, changes=changes)
|
||||
r = authenticate(user['email'], new_password)
|
||||
|
||||
|
|
|
|||
|
|
@ -524,9 +524,7 @@ def change_password(tenant_id, user_id, email, old_password, new_password):
|
|||
|
||||
|
||||
def set_password_invitation(tenant_id, user_id, new_password):
|
||||
changes = {"password": new_password,
|
||||
"invitationToken": None, "invitedAt": None,
|
||||
"changePwdExpireAt": None, "changePwdToken": None}
|
||||
changes = {"password": new_password}
|
||||
user = update(tenant_id=tenant_id, user_id=user_id, changes=changes)
|
||||
r = authenticate(user['email'], new_password)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue