mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-05 02:58:36 -06:00
feat: redirect user to email verification page if not done (#2241)
This commit is contained in:
committed by
GitHub
parent
26b8c4c7d5
commit
4dc5ace3f8
@@ -68,6 +68,11 @@ export const SigninForm = ({
|
||||
return;
|
||||
}
|
||||
|
||||
if (signInResponse?.error === "Email Verification is Pending") {
|
||||
router.push(`/auth/verification-requested?email=${data.email}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (signInResponse?.error) {
|
||||
setLoggingIn(false);
|
||||
setSignInError(signInResponse.error);
|
||||
|
||||
Reference in New Issue
Block a user