Skip to content
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

feat(clerk-js,localizations): Nav to reset-password if needs_new_password #2984

Merged

Conversation

yourtallness
Copy link
Contributor

@yourtallness yourtallness commented Mar 12, 2024

Description

If password_settings.enforce_on_sign_in is true, then it will be possible for a password sign-in to succeed but require a new password that conforms to updated password requirements.

Hence, if sign_in.needs_new_password is true, the password form will navigate to reset-password.

Since we are reusing a flow initially created for resetting passwords after an oauth flow, the error message has been made more generic.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Copy link

changeset-bot bot commented Mar 12, 2024

🦋 Changeset detected

Latest commit: d45314e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@clerk/localizations Minor
@clerk/clerk-js Minor
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@yourtallness yourtallness requested a review from anagstef March 12, 2024 18:02
@yourtallness yourtallness force-pushed the yourtallness/password_complexity_strength_on_sign_in branch from dba312a to a4b140d Compare March 12, 2024 18:08
…if sign_in.needs_new_password

If password_settings.enforce_on_sign_in is true, then it will be possible for a password sign-in to
succeed but require a new password that conforms to updated password requirements.

Hence, if sign_in.needs_new_password is true, the password form will navigate to reset-password.

Since we are reusing a flow initially created for resetting passwords after an oauth flow, the
error message has been made more generic.
@yourtallness yourtallness changed the base branch from main to nikos/snapshot-test March 12, 2024 22:54
@yourtallness yourtallness requested a review from a team as a code owner March 12, 2024 22:54
@yourtallness yourtallness changed the base branch from nikos/snapshot-test to main March 12, 2024 22:54
@octoper
Copy link
Member

octoper commented Mar 12, 2024

!preview

@clerk-cookie
Copy link
Collaborator

clerk-cookie commented Mar 12, 2024

Hey @octoper, your preview is available.

Status Preview Updated (UTC)
🍪 Deployed Visit preview Mar 12, 2024 11:36 PM

@yourtallness yourtallness force-pushed the yourtallness/password_complexity_strength_on_sign_in branch from a4b140d to de1336c Compare March 13, 2024 01:46
@LekoArts LekoArts changed the title feat(clerk-js,localizations): Nav to reset-password from pass-form … feat(clerk-js,localizations): Nav to reset-password if needs_new_password Mar 13, 2024
Copy link
Member

@panteliselef panteliselef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just update the changeset file as @LekoArts suggested

@nikosdouvlis nikosdouvlis merged commit 31570f1 into main Mar 19, 2024
9 checks passed
@nikosdouvlis nikosdouvlis deleted the yourtallness/password_complexity_strength_on_sign_in branch March 19, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants