Changing the email or phone number: Go back during a resend brings the code step back with no address

Open
#15,050 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
50/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
frontend

Research direction

Start from the Settings page's Account section, where the email and phone number tabs have a code step with a Go back button and a SendToken method that shows that step again. Reproduce the race by pressing Go back while a resend is pending, then check that the address is cleared and the code step is shown with an empty field. Done means either disabling Go back while a code is being sent or ignoring a send that answers after the user has gone back, with the code step no longer showing an empty address.

Written by the indexing model from the issue text.

Description

On the Settings page's Account section, the email and phone number tabs' code step has a Go back button that stays enabled while a resend is on its way. If it's pressed then, the tab goes back to its first step and clears the address. When the resend answers, SendToken shows the code step again and copies the now empty address into it. The code step then has an empty, disabled email or phone number field, and the code can't be confirmed, as the address is required, until Go back is pressed again.

Go back shouldn't be available while a code is being sent, or a send that answers after it should leave the first step as it is.

Dominant language
C#
Stars
1.4k
Forks
264
Avg merge
7h 38m
Merged PRs (30d)
544

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bitfoundation/bitplatform

All issues in bitfoundation/bitplatform

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.