Skip to content

fix: fixes user_password_put #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## unreleased

## [0.12.8] - 2023-04-19

- Fixed an issues that threw 500 when changing password for user from dashboard

## [0.12.7] - 2023-04-18

- Email template for verify email updated
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

setup(
name="supertokens_python",
version="0.12.7",
version="0.12.8",
author="SuperTokens",
license="Apache 2.0",
author_email="[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion supertokens_python/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"2.19",
"2.20",
]
VERSION = "0.12.7"
VERSION = "0.12.8"
TELEMETRY = "/telemetry"
USER_COUNT = "/users/count"
USER_DELETE = "/user/remove"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def handle_user_password_put(
raise Exception("Should not come here")

async def reset_password(
recipe: Any, # FIXME
form_fields: List[NormalisedFormField],
create_reset_password_token: Callable[
[str],
Awaitable[
Expand All @@ -89,7 +89,6 @@ async def reset_password(
) -> Union[
UserPasswordPutAPIResponse, UserPasswordPutAPIInvalidPasswordErrorResponse
]:
form_fields: List[NormalisedFormField] = recipe.get_instance().config.sign_up_feature.form_fields # type: ignore # FIXME?
password_form_field = [
field for field in form_fields if field.id == FORM_FIELD_PASSWORD_ID
][0]
Expand Down Expand Up @@ -122,14 +121,14 @@ async def reset_password(

if recipe_to_use == "emailpassword":
return await reset_password(
EmailPasswordRecipe,
EmailPasswordRecipe.get_instance().config.sign_up_feature.form_fields,
ep_create_reset_password_token,
ep_reset_password_using_token,
)

if recipe_to_use == "thirdpartyemailpassword":
return await reset_password(
ThirdPartyEmailPasswordRecipe,
ThirdPartyEmailPasswordRecipe.get_instance().email_password_recipe.config.sign_up_feature.form_fields,
tpep_create_reset_password_token,
tpep_reset_password_using_token,
)