Skip to content

Account Password Related Updates - #5584

Closed
stnguyen90 wants to merge 4 commits into
1.4.xfrom
fix-4990-dont-rehash-password
Closed

stnguyen90 wants to merge 4 commits into
1.4.xfrom
fix-4990-dont-rehash-password

Conversation

@stnguyen90

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Make password optional for Update Email and Phone
  • Don't rely on isAnonymousUser to check whether to verify password
  • Don't set/update password when updating email
  • Fix 500 error when a passwordless user creates an email session

Test Plan

Automated tests

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

The update email should only be concerned with updating the email
It's possible for a user to not be anonymous and not have a password.
Using passwordUpdate is a better indicator as to whether the user has
set a password or not.
If a user does not have a password set, they shouldn't need to send a
password.
@stnguyen90
stnguyen90 marked this pull request as draft May 25, 2023 21:56
@stnguyen90
stnguyen90 marked this pull request as ready for review May 26, 2023 00:21
->label('sdk.offline.key', 'current')
->param('email', '', new Email(), 'User email.')
->param('password', '', new Password(), 'User password. Must be at least 8 chars.')
->param('password', '', new Password(), 'User password. Must be at least 8 chars.', true)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's add that this is not required for users that haven't set the password, but will throw exception otherwise.

@stnguyen90
stnguyen90 marked this pull request as draft June 1, 2023 22:10
@stnguyen90

Copy link
Copy Markdown
Contributor Author

Closing this in favor of #5621

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants