feat: username login support - recherche par username OU email

This commit is contained in:
Manus Deploy
2026-04-21 06:00:43 -04:00
parent 171386d333
commit 145b3dd971
8 changed files with 792 additions and 41 deletions

View File

@@ -12,6 +12,7 @@ import AAPDashboard from "./pages/AAPDashboard";
import Settings from "./pages/Settings";
import UsersAdmin from "./pages/UsersAdmin";
import ImportLogs from "./pages/ImportLogs";
import BoiteAIdees from "./pages/BoiteAIdees";
import { Loader2 } from "lucide-react";
// ─── Guard d'authentification ─────────────────────────────────────────────────
@@ -97,6 +98,16 @@ function LogsPage() {
);
}
function BoiteAIdeesPage() {
return (
<AuthGuard>
<DashboardWrapper>
<BoiteAIdees />
</DashboardWrapper>
</AuthGuard>
);
}
// ─── Routeur principal ────────────────────────────────────────────────────────
function Router() {
@@ -111,6 +122,7 @@ function Router() {
<Route path="/admin/settings" component={SettingsPage} />
<Route path="/admin/users" component={UsersPage} />
<Route path="/admin/logs" component={LogsPage} />
<Route path="/boite-a-idees" component={BoiteAIdeesPage} />
<Route path="/404" component={NotFound} />
<Route component={NotFound} />
</Switch>