We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5987a6d commit 0c28682Copy full SHA for 0c28682
apps/sim/app/(auth)/login/login-form.tsx
@@ -213,9 +213,12 @@ export default function LoginPage({
213
onError: (ctx) => {
214
logger.error('Login error:', ctx.error)
215
216
- // EMAIL_NOT_VERIFIED is handled by the catch block which redirects to /verify
217
if (ctx.error.code?.includes('EMAIL_NOT_VERIFIED')) {
218
errorHandled = true
+ if (typeof window !== 'undefined') {
219
+ sessionStorage.setItem('verificationEmail', email)
220
+ }
221
+ router.push('/verify')
222
return
223
}
224
0 commit comments