diff options
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); |
