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

No Feedback When Resending OTP, Leading to Multiple Clicks and Rate Limiting #11562

Closed
zainAwan9175 opened this issue Mar 25, 2025 · 1 comment · Fixed by #11627
Closed

No Feedback When Resending OTP, Leading to Multiple Clicks and Rate Limiting #11562

zainAwan9175 opened this issue Mar 25, 2025 · 1 comment · Fixed by #11627
Assignees
Labels
needs-triage question Further information is requested

Comments

@zainAwan9175
Copy link
Contributor

zainAwan9175 commented Mar 25, 2025

Describe the bug

During the appointment process, when users are required to enter their mobile number for OTP verification, clicking the "Resend OTP" button does not provide any visible feedback (such as a success message or error popup). If the OTP fails to send for any reason, the user assumes the button is unresponsive and keeps clicking it multiple times. This can lead to the user exceeding the OTP request limit, causing frustration.

To Reproduce

  1. Start the appointment process where a mobile number is required.
  2. Enter the mobile number and proceed to receive the OTP.
  3. If the OTP is not received, click on the "Resend OTP" button.
  4. If the OTP fails to send due to a backend issue, no message is shown to the user.
  5. The user repeatedly clicks the button, thinking it is not working, until the rate limit is exceeded.

Expected behavior

  1. A success or error message should be displayed when the "Resend OTP" button is clicked.
  2. If the OTP request fails, the user should see a notification explaining the issue (e.g., "Failed to resend OTP. Please try again later.").
  3. The button should be temporarily disabled with a loading indicator to prevent excessive clicks.

Desktop

OS: Windows
Browser: Chrome
Version: [Specify Chrome version, e.g., 122]

Additional context

Image

@rithviknishad As I am already working on this issue, I am interested in getting assigned this issue to mee.

@Harsh-D-2004
Copy link
Contributor

@rithviknishad can u assign me this

Approach : Show a toast message for the same when it fails to send OTP

But is it already implemented and not working due to OTP API rate limits and using default OTP ??

@github-actions github-actions bot added needs-triage question Further information is requested labels Mar 25, 2025
zainAwan9175 added a commit to zainAwan9175/care_fe that referenced this issue Mar 27, 2025
zainAwan9175 added a commit to zainAwan9175/care_fe that referenced this issue Mar 27, 2025
zainAwan9175 added a commit to zainAwan9175/care_fe that referenced this issue Mar 27, 2025
zainAwan9175 added a commit to zainAwan9175/care_fe that referenced this issue Mar 29, 2025
@github-project-automation github-project-automation bot moved this to Triage in Care Mar 30, 2025
@rithviknishad rithviknishad moved this from Triage to Done in Care Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment