Skip to content

Commit

Permalink
Revert "Reset password now supports getDefaultValue"
Browse files Browse the repository at this point in the history
This reverts commit be4c00a.
  • Loading branch information
amitbadala committed Nov 7, 2023
1 parent ab38c3f commit 0a79336
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
9 changes: 1 addition & 8 deletions lib/build/emailpassword-shared4.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions lib/build/recipe/emailpassword/types.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions lib/ts/recipe/emailpassword/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@ export type ResetPasswordUsingTokenUserInput = {
/*
* enterEmailForm config.
*/
enterEmailForm?: FeatureBaseConfig & {
getDefaultValue?: () => string;
};
enterEmailForm?: FeatureBaseConfig;
};

export type NormalisedResetPasswordUsingTokenFeatureConfig = {
Expand Down
1 change: 0 additions & 1 deletion lib/ts/recipe/emailpassword/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ export function normaliseResetPasswordUsingTokenFeature(
validate: signUpEmailField.validate,
placeholder: "",
autofocus: true,
getDefaultValue: config.enterEmailForm?.getDefaultValue,
},
],
};
Expand Down

0 comments on commit 0a79336

Please sign in to comment.