]> Raphaël G. Git Repositories - userbundle/commitdiff
Cleanup
authorRaphaël Gertz <git@rapsys.eu>
Thu, 12 Aug 2021 07:28:01 +0000 (09:28 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 12 Aug 2021 07:28:01 +0000 (09:28 +0200)
Controller/DefaultController.php

index 272f7bb19615efec101f9b50661e7a4b92cb8538..c6ac4be6927d5e6025fcd9d6e8e6eaee775ac76f 100644 (file)
@@ -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'));
                }