formbricks icon indicating copy to clipboard operation
formbricks copied to clipboard

fix: handle incorrect 2FA OTP error

Open BreakTos opened this issue 4 months ago • 4 comments

What does this PR do?

It shows a toast error for wrong 2FA code entered

Fixes # (issue) fixes #3933

How should this be tested?

  • Test A
  • Test B

Checklist

Required

  • [ ] Filled out the "How to test" section in this PR
  • [ ] Read How we Code at Formbricks
  • [ ] Self-reviewed my own code
  • [ ] Commented on my code in hard-to-understand bits
  • [ ] Ran pnpm build
  • [ ] Checked for warnings, there are none
  • [ ] Removed all console.logs
  • [ ] Merged the latest changes from main onto my branch with git pull origin main
  • [ ] My changes don't cause any responsiveness issues
  • [ ] First PR at Formbricks? Please sign the CLA! Without it we wont be able to merge it 🙏

Appreciated

  • [ ] If a UI change was made: Added a screen recording or screenshots to this PR
  • [ ] Updated the Formbricks Docs if changes were necessary

Summary by CodeRabbit

  • New Features

    • Enhanced user feedback in the Two-Factor Authentication process with specific error messages for incorrect One-Time Password (OTP) entries.
  • Bug Fixes

    • Implemented error handling for the OTP submission to improve user experience.

BreakTos avatar Oct 20 '24 18:10 BreakTos