Skip to content

Commit

Permalink
Fixing bug: Infisical#1582 | Automatically validate the email verific…
Browse files Browse the repository at this point in the history
…ation code (no need to press <ENTER>)
  • Loading branch information
Bhaveshshah777 committed Jan 13, 2025
1 parent 258d19c commit 7d26a7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/pages/auth/SignUpPage/SignUpPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export const SignUpPage = () => {
}
}, [config.allowSignUp]);

useEffect(() => {
if (code !== '123456' && code.length === 6) {
incrementStep();
}
}, [code])

/**
* Goes to the following step (out of 5) of the signup process.
* Step 1 is submitting your email
Expand Down

0 comments on commit 7d26a7f

Please sign in to comment.