From 9934a32f7e02c484d6b122c9af860ab1ca9b2dca Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 2 Aug 2025 17:03:42 +0200 Subject: =?UTF-8?q?r=C3=A9organisation=202=20requ=C3=AAtes=20"form":=20s?= =?UTF-8?q?=C3=A9paration=20routage=20et=20contr=C3=B4leurs=20avec=20des?= =?UTF-8?q?=20fonctions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/password.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/controller/password.php') diff --git a/src/controller/password.php b/src/controller/password.php index 62b1542..e91cc16 100644 --- a/src/controller/password.php +++ b/src/controller/password.php @@ -213,7 +213,7 @@ function connect(LoginBuilder $builder, EntityManager $entityManager) } -function changePassword(EntityManager $entityManager) +function changePassword(EntityManager $entityManager): void { // fonction exécutée à priori deux fois d'affilée: affichage puis traitement de la saisie @@ -284,6 +284,7 @@ function changePassword(EntityManager $entityManager) { $success = false; echo($alertJSNewPassword); + //header("Location: " . new URL(['page' => $_GET['from']])); // choisir "location" entre PHP et JS die; } echo($formulaireModifMDP); -- cgit v1.2.3