mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-12 09:56:08 +00:00
feat(auth): implement email verification process with resend functionality and update registration flow
This commit is contained in:
@@ -87,7 +87,11 @@ export default function RegisterPageClient({ requireInviteCode, googleEnabled, g
|
||||
return;
|
||||
}
|
||||
|
||||
router.push('/login?registered=true');
|
||||
if (data.data?.emailVerificationRequired) {
|
||||
router.push(`/verify-email?email=${encodeURIComponent(formData.email)}`);
|
||||
} else {
|
||||
router.push('/login?registered=true');
|
||||
}
|
||||
} catch {
|
||||
setError('Something went wrong. Please try again.');
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user