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(verification): loosen OTP waiting time by 2 seconds #1957

Merged
merged 1 commit into from
May 25, 2021

Conversation

mantariksh
Copy link
Contributor

Problem

Closes #1923, see issue for detailed explanation of problem

Solution

Add a tolerance of 2 seconds to the OTP waiting time check. This means the server allows OTPs to be requested every 28 seconds.

Breaking Changes

  • Yes - this PR contains breaking changes
    • Details ...
  • No - this PR is backwards compatible, only server-side changes

Tests

No tests to be updated. Current service tests check that the OTP requests are rejected if made within 25 seconds of each other, which is still true (pats self on the back).

Manual tests

  • Request for an OTP for a verified field. When the 30 second timer on the UI elapses, immediately request a new one. The request should be valid and you should receive the new OTP.

Copy link
Contributor

@chowyiyin chowyiyin left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

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

lgtm

@mantariksh mantariksh merged commit 9cc9691 into develop May 25, 2021
@yong-jie yong-jie mentioned this pull request Jun 1, 2021
@mantariksh mantariksh deleted the fix/verified-field-wait-time branch June 7, 2021 11:12
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.

Verified field OTP waiting time check is susceptible to clock drift
3 participants