Skip to content

Commit 3987556

Browse files
committed
feat: Redirect to / on success login/register
1 parent edb33a6 commit 3987556

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/app/(auth)/log-in/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default function LoginPage() {
2525
} else {
2626
// Simulación de éxito
2727
alert("¡Bienvenido/a a ACM Javeriana!");
28+
window.location.href = "/"
2829
}
2930
}, 1200);
3031
};

src/app/(auth)/sign-up/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function SignUpPage() {
2727
} else {
2828
// Simulación de éxito
2929
alert("¡Registro exitoso! Ahora puedes iniciar sesión.");
30+
window.location.href = "/"
3031
}
3132
}, 1200);
3233
};

0 commit comments

Comments
 (0)