Skip to content

fix: 2FA code request error alert - WPB-24847#4609

Merged
johnxnguyen merged 12 commits into
release/cycle-4.16from
fix/rate-limit-error-wpb-24847
May 13, 2026
Merged

fix: 2FA code request error alert - WPB-24847#4609
johnxnguyen merged 12 commits into
release/cycle-4.16from
fix/rate-limit-error-wpb-24847

Conversation

@johnxnguyen
Copy link
Copy Markdown
Collaborator

@johnxnguyen johnxnguyen commented Apr 21, 2026

BugWPB-24847 [iOS] [Login] Error message is displayed after password entry during login by user

Issue

2FA codes from the backend can only be requested once within a time interval. If the code is requested multiple times in within the interval it will return a 429 "too many request" error.

This error is not handled in any particular way and is surfaced to the error as a generic "something went wrong" alert which confuses the user.

Simulator.Screen.Recording.-.A.-.2026-04-21.at.23.48.37.mov

This PR improves the error handling to better inform the user what is going on by disabling the button to request a new code and showing the number of seconds until a new code can be requested.

Simulator.Screen.Recording.-.A.-.2026-05-13.at.10.53.03.mov
Simulator.Screen.Recording.-.A.-.2026-05-13.at.10.58.14.mov

Testing

  • Enter email and password credentials for an account that requires 2FA
  • When asked to input the 2FA code, request a new code.
  • Assert the request code button is disabled with a countdown.
  • assert that after the timeout a new code can be requested.

Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Test Results

    7 files    775 suites   5m 50s ⏱️
5 112 tests 5 084 ✅ 28 💤 0 ❌
5 113 runs  5 085 ✅ 28 💤 0 ❌

Results for commit 01a8551.

♻️ This comment has been updated with latest results.

Summary: workflow run #25794122136
Allure report (download zip): html-report-29965-fix_rate-limit-error-wpb-24847

Copy link
Copy Markdown
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

lgtm:) left a few comments

@sonarqubecloud
Copy link
Copy Markdown

@johnxnguyen johnxnguyen merged commit d23c537 into release/cycle-4.16 May 13, 2026
17 checks passed
@johnxnguyen johnxnguyen deleted the fix/rate-limit-error-wpb-24847 branch May 13, 2026 11:38
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.

3 participants