Skip to content

fix: add OTP expiration check in ResetPassword#494

Merged
lakhansamani merged 3 commits intomainfrom
fix/reset-password-otp-expiry
Mar 1, 2026
Merged

fix: add OTP expiration check in ResetPassword#494
lakhansamani merged 3 commits intomainfrom
fix/reset-password-otp-expiry

Conversation

@lakhansamani
Copy link
Contributor

Summary

  • Added OTP expiration check in ResetPassword OTP flow
  • Consistent with VerifyOTP which already checks otp.ExpiresAt

Test plan

  • Verify expired OTPs are rejected in reset password flow
  • Verify valid OTPs still work

Fixes #483

The reset password OTP path only checked if the OTP value matched but
not if it was expired. Added expiry check consistent with VerifyOTP.

Fixes #483
@lakhansamani lakhansamani merged commit af17285 into main Mar 1, 2026
@lakhansamani lakhansamani deleted the fix/reset-password-otp-expiry branch March 1, 2026 07:06
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.

ResetPassword OTP flow doesn't check OTP expiration

1 participant