X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/167e6d4a1d7db9331ed16f27d2558ef1992bff39..efbfa35585b0cf29d0f6f8b0d47c5ac9218f0ab9:/Controller/DefaultController.php 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')); }