From efbfa35585b0cf29d0f6f8b0d47c5ac9218f0ab9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 12 Aug 2021 09:28:01 +0200 Subject: [PATCH] Cleanup --- Controller/DefaultController.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php index 272f7bb..c6ac4be 100644 --- a/Controller/DefaultController.php +++ b/Controller/DefaultController.php @@ -399,7 +399,6 @@ class DefaultController extends AbstractController { $this->addFlash('notice', $this->translator->trans('Account %mail% password updated', ['%mail%' => $mail = $data->getMail()])); //Redirect to cleanup the form - //TODO: extract referer ??? or useless ??? return $this->redirectToRoute($this->config['route']['edit']['name'], ['mail' => $smail = $slugger->short($mail), 'hash' => $slugger->hash($smail)]+$this->config['route']['edit']['context']); } } @@ -436,7 +435,6 @@ class DefaultController extends AbstractController { $this->addFlash('notice', $this->translator->trans('Account %mail% updated', ['%mail%' => $mail = $data->getMail()])); //Redirect to cleanup the form - //TODO: extract referer ??? or useless ??? return $this->redirectToRoute($this->config['route']['edit']['name'], ['mail' => $smail = $slugger->short($mail), 'hash' => $slugger->hash($smail)]+$this->config['route']['edit']['context']); } } @@ -528,7 +526,6 @@ class DefaultController extends AbstractController { $context['recover'] = $recover->createView(); } else { //Add notice - //TODO: drop it if referer route is recover ? $this->addFlash('notice', $this->translator->trans('To change your password login with your mail and any password then follow the procedure')); } -- 2.41.0