From e74f9c98a2cb5f3891ac0946947d7798cf152c2a Mon Sep 17 00:00:00 2001 From: N3WT DE COMPET Date: Sat, 31 May 2025 08:52:26 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20Suppression=20fonctions=20inutilis?= =?UTF-8?q?=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/[locale]/admin/settings/page.js | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/Front-End/src/app/[locale]/admin/settings/page.js b/Front-End/src/app/[locale]/admin/settings/page.js index caad534..58d06f9 100644 --- a/Front-End/src/app/[locale]/admin/settings/page.js +++ b/Front-End/src/app/[locale]/admin/settings/page.js @@ -77,18 +77,6 @@ export default function SettingsPage() { } }, [activeTab, csrfToken]); // Ajouter csrfToken comme dépendance - const handleEmailChange = (e) => { - setEmail(e.target.value); - }; - - const handlePasswordChange = (e) => { - setPassword(e.target.value); - }; - - const handleConfirmPasswordChange = (e) => { - setConfirmPassword(e.target.value); - }; - const handleSmtpServerChange = (e) => { setSmtpServer(e.target.value); }; @@ -105,26 +93,6 @@ export default function SettingsPage() { setSmtpPassword(e.target.value); }; - const handleUseTlsChange = (e) => { - setUseTls(e.target.checked); - }; - - const handleUseSslChange = (e) => { - setUseSsl(e.target.checked); - }; - - const handleSubmit = (e) => { - e.preventDefault(); - if (password !== confirmPassword) { - showNotification( - 'Les mots de passe ne correspondent pas', - 'error', - 'Erreur' - ); - return; - } - }; - const handleSmtpSubmit = (e) => { e.preventDefault(); const smtpData = {