diff --git a/src/routes/signup.tsx b/src/routes/signup.tsx index 3778afa1..ac654d06 100644 --- a/src/routes/signup.tsx +++ b/src/routes/signup.tsx @@ -38,8 +38,6 @@ function Signup() { const [loading, setLoading] = useState(false) const [strength, setStrength] = useState(null) - const [success, setSuccess] = useState(false) - const [showPassword, setShowPassword] = useState(false) const [showConfirmPassword, setShowConfirmPassword] = useState(false) @@ -93,7 +91,6 @@ function Signup() { email, password, name, - callbackURL: window.location.origin + '/email-verified', // Redirect to Frontend after verification }, { onRequest: () => { @@ -103,7 +100,8 @@ function Signup() { onSuccess: () => { console.log('Signup Successful!') setLoading(false) - setSuccess(true) + // Redirect directly to dashboard since email verification is disabled + window.location.href = '/dashboard' }, onError: (ctx: { error: Error }) => { console.error('Signup Error:', ctx) @@ -120,48 +118,6 @@ function Signup() { } } - if (success) { - return ( -
-
-
-
- - - - - -
-
-

Check your email

-

- We've sent a verification link to{' '} - {email}. -
- Please check your inbox to verify your account. -

- - Go to Sign In - -
-
- ) - } - return (