diff options
author | polo <ordipolo@gmx.fr> | 2025-08-02 17:03:42 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-08-02 17:03:42 +0200 |
commit | 9934a32f7e02c484d6b122c9af860ab1ca9b2dca (patch) | |
tree | f4f8d621a42104246375c0489e19e4673d726279 /src/controller/password.php | |
parent | 20e1d288035a274b48f0d2d26f547ad15e99761d (diff) | |
download | cms-9934a32f7e02c484d6b122c9af860ab1ca9b2dca.zip |
réorganisation 2 requêtes "form": séparation routage et contrôleurs avec des fonctions
Diffstat (limited to 'src/controller/password.php')
-rw-r--r-- | src/controller/password.php | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
213 | } | 213 | } |
214 | 214 | ||
215 | 215 | ||
216 | function changePassword(EntityManager $entityManager) | 216 | function changePassword(EntityManager $entityManager): void |
217 | { | 217 | { |
218 | // fonction exécutée à priori deux fois d'affilée: affichage puis traitement de la saisie | 218 | // fonction exécutée à priori deux fois d'affilée: affichage puis traitement de la saisie |
219 | 219 | ||
@@ -284,6 +284,7 @@ function changePassword(EntityManager $entityManager) | |||
284 | { | 284 | { |
285 | $success = false; | 285 | $success = false; |
286 | echo($alertJSNewPassword); | 286 | echo($alertJSNewPassword); |
287 | //header("Location: " . new URL(['page' => $_GET['from']])); // choisir "location" entre PHP et JS | ||
287 | die; | 288 | die; |
288 | } | 289 | } |
289 | echo($formulaireModifMDP); | 290 | echo($formulaireModifMDP); |