feat: add admin dashboard and core API routes with Docker configuration
This commit is contained in:
@@ -43,7 +43,7 @@ function LoginForm() {
|
||||
|
||||
toast.success(`Bienvenue, ${res.user?.name || "Administrateur"} !`);
|
||||
// Full page redirect ensures middleware & server cookies are freshly synchronized
|
||||
window.location.href = from.startsWith("/") ? from : "/dashboard";
|
||||
window.location.href = from.startsWith("/") && !from.startsWith("//") && !from.startsWith("/\\") ? from : "/dashboard";
|
||||
} catch (err) {
|
||||
console.error("Login client error:", err);
|
||||
setErrorMessage("Une erreur imprévue est survenue. Veuillez réessayer.");
|
||||
|
||||
Reference in New Issue
Block a user