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

fix(2fa): login button disabled after verifiction backpress [WPB-3590] #2192

Conversation

vitorhugods
Copy link
Contributor


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Login button is disabled after user navigates back from 2FA verification

Causes

loading state is not properly reset on 2FA-related failures.

Solutions

Properly reset the state and reenable the button.

Testing

Test Coverage

  • I have added automated test to this contribution

How to Test

See videos below, requires being member of a team that requires 2FA.

Attachments

Before

Faulty.2FA.backbutton.webm

After

Working.2FA.backbutton.webm

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

Refined the process of two-factor authentication in LoginEmailViewModel. The loading state and enabled state of the email login are now correctly updated when missing 2FA is detected. This facilitates better user interaction by maintaining appropriate button states during 2FA processing. Also, additional test cases are added to verify the correct behaviour under these changes.
@vitorhugods vitorhugods requested review from a team, borichellow, MohamadJaara, mchenani, Garzas and saleniuk and removed request for a team September 7, 2023 12:54
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2023

Test Results

587 tests   586 ✔️  4m 48s ⏱️
  84 suites      1 💤
  84 files        0

Results for commit 7177d6b.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2023

APKs built during tests are available here. Scroll down to Artifacts!

@vitorhugods vitorhugods merged commit bb0ab62 into release/candidate Sep 7, 2023
13 of 14 checks passed
@vitorhugods vitorhugods deleted the fix/2fa/login-button-disabled-after-verifiction-backpress branch September 7, 2023 13:31
@AndroidBob
Copy link
Collaborator

Build 622 succeeded.

The build produced the following APK's:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants