From fe4907ee46f65028a84ba1a98f128d51488bd9eb Mon Sep 17 00:00:00 2001 From: "XPS\\Micro" Date: Sat, 31 Jan 2026 16:46:45 +0100 Subject: [PATCH] fix: update admin page for passwordless authentication - Remove handleResetPassword function (no longer needed with Magic Links) - Change password reset button to send Magic Link instead - Update button icon from KeyRound to Mail - Update button tooltip to reflect new Magic Link flow - Remove unused KeyRound import --- frontend/src/app/admin/page.tsx | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) 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 */}