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

Add password on confirmation when changing email #4503

Merged
merged 8 commits into from
Sep 17, 2022

Conversation

joeauyeung
Copy link
Contributor

What does this PR do?

This PR prompts the user to confirm their password before changing their email.

Fixes # (issue)

https://www.loom.com/share/314277d527d0453a894f1d41741ce248

Environment: Staging(main branch) / Production

Type of change

  • Chore (refactoring code, technical debt, workflow improvements)

How should this be tested?

  • Go to the profile settings
  • Try changing your email
    • In the prompt enter the incorrect password
    • Now enter the correct password
  • You should now be able to change your email

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

@vercel
Copy link

vercel bot commented Sep 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Sep 17, 2022 at 10:35PM (UTC)

});
},
})
.mutation("verifyPassword", {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this new tRPC endpoint for in the future if we need to confirm passwords

Copy link
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

This works; but the UX experience isn't great.

Copy link
Member

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Blocking. Let's make this right. I'd rather disable email changes until then.

@joeauyeung
Copy link
Contributor Author

Thanks for the feedback @zomars and @emrysal. The confirm password modal now appears only if the email was changed.
https://www.loom.com/share/f3adbe9e03914166b498e17bd20d80ee

Copy link
Member

@zomars zomars left a comment

Choose a reason for hiding this comment

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

LGTM

@zomars zomars merged commit cf32287 into main Sep 17, 2022
@zomars zomars deleted the hotfix/confirm-password-change-email branch September 17, 2022 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants