Skip to content

Commit 87b74e7

Browse files
committed
fix: Fix tenant id being passed in the wrong order for password update functions
1 parent 6f02fcf commit 87b74e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supertokens_python/recipe/dashboard/api/userdetails/user_password_put.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def reset_password(
106106
)
107107

108108
password_reset_token = await create_reset_password_token(
109-
user_id, tenant_id, user_context
109+
tenant_id, user_id, user_context
110110
)
111111

112112
if isinstance(password_reset_token, CreateResetPasswordWrongUserIdError):
@@ -115,7 +115,7 @@ async def reset_password(
115115
raise Exception("Should never come here")
116116

117117
password_reset_response = await reset_password_using_token(
118-
password_reset_token.token, new_password, tenant_id, user_context
118+
tenant_id, password_reset_token.token, new_password, user_context
119119
)
120120

121121
if isinstance(

0 commit comments

Comments
 (0)