Checkpoint: DashboardLayout redirige maintenant vers /login (connexion locale) au lieu d'afficher le bouton Sign in OAuth

This commit is contained in:
Manus
2026-03-22 13:15:56 -04:00
parent 9baa2c0610
commit cd11059a89

View File

@@ -104,29 +104,8 @@ export default function DashboardLayout({
}
if (!user) {
return (
<div className="flex items-center justify-center min-h-screen">
<div className="flex flex-col items-center gap-8 p-8 max-w-md w-full">
<div className="flex flex-col items-center gap-6">
<h1 className="text-2xl font-semibold tracking-tight text-center">
Sign in to continue
</h1>
<p className="text-sm text-muted-foreground text-center max-w-sm">
Access to this dashboard requires authentication. Continue to launch the login flow.
</p>
</div>
<Button
onClick={() => {
window.location.href = getLoginUrl();
}}
size="lg"
className="w-full shadow-lg hover:shadow-xl transition-all"
>
Sign in
</Button>
</div>
</div>
);
window.location.href = "/login";
return <DashboardLayoutSkeleton />;
}
return (