Merge pull request 'fix: redirect unverified users to verification page (#53)' (#54) from issue-53-login-button-unverified-users into main
All checks were successful
Deploy to Staging / Build Images (push) Successful in 26s
Deploy to Staging / Deploy to Staging (push) Successful in 38s
Deploy to Staging / Verify Staging (push) Successful in 7s
Deploy to Staging / Notify Staging Ready (push) Successful in 6s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
All checks were successful
Deploy to Staging / Build Images (push) Successful in 26s
Deploy to Staging / Deploy to Staging (push) Successful in 38s
Deploy to Staging / Verify Staging (push) Successful in 7s
Deploy to Staging / Notify Staging Ready (push) Successful in 6s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
Reviewed-on: #54
This commit was merged in pull request #54.
This commit is contained in:
@@ -26,6 +26,14 @@ export const HomePage = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if user has a pending email verification (signed up but not verified)
|
||||||
|
const pendingVerificationEmail = localStorage.getItem('pendingVerificationEmail');
|
||||||
|
if (pendingVerificationEmail) {
|
||||||
|
// Redirect to verify-email page with the stored email
|
||||||
|
navigate('/verify-email', { state: { email: pendingVerificationEmail } });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
loginWithRedirect({ appState: { returnTo: '/garage' } });
|
loginWithRedirect({ appState: { returnTo: '/garage' } });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user