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

Automatically validate the email verification code #2312

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BKM14
Copy link

@BKM14 BKM14 commented Aug 20, 2024

Description 📣

Solves #1582

Added another prop 'code' to the CodeInputStep component to keep track of the code entered so far. A useEffect is utilized to run whenever the code value changes. The incrementStep() function is only called when the length of the code is 6 and it is not equal to "123456".

Type ✨

  • Bug fix
  • New feature
  • Breaking change
  • Documentation

Tests 🛠️

Used a local mailhog server to send dummy emails. Then generated the verification codes and tested it. An error message is displayed if the code isn't correct. If the code is correct, it re-directs to the next page, without having to press the enter key again.


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.

1 participant