From: Raphaƫl Gertz Date: Thu, 12 Aug 2021 07:28:01 +0000 (+0200) Subject: Cleanup X-Git-Tag: 0.2.0~55 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/efbfa35585b0cf29d0f6f8b0d47c5ac9218f0ab9 Cleanup --- 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')); }