diff --git a/frontend/src/app/admin/page.tsx b/frontend/src/app/admin/page.tsx index 56225e0..a17ff40 100644 --- a/frontend/src/app/admin/page.tsx +++ b/frontend/src/app/admin/page.tsx @@ -22,7 +22,6 @@ import { Shield, ShieldOff, Trash2, - KeyRound, Mail, RefreshCw, LogOut, @@ -156,20 +155,6 @@ export default function AdminPage() { setActionLoading(null); }; - const handleResetPassword = async (userId: number) => { - if (!confirm("Passwort zuruecksetzen? Der User erhaelt eine Email mit dem neuen Passwort.")) { - return; - } - setActionLoading(userId); - const { data, error } = await adminApi.resetPassword(userId); - if (error) { - setError(error); - } else { - showSuccess(data?.message || "Passwort zurueckgesetzt"); - } - setActionLoading(null); - }; - const handleResendVerification = async (userId: number) => { setActionLoading(userId); const { data, error } = await adminApi.resendVerification(userId); @@ -488,14 +473,14 @@ export default function AdminPage() { )} - {/* Passwort zuruecksetzen */} + {/* Login-Link erneut senden */} {/* Container loeschen */}