From: Vincent Vanwaelscappel Date: Mon, 8 Jan 2024 09:20:31 +0000 (+0100) Subject: wait #6612 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5fc1722c6849f6a9475df4cf5a0390e45cc3cf64;p=pmi.git wait #6612 @0.25 --- diff --git a/app/Http/Controllers/Client/ResetPasswordController.php b/app/Http/Controllers/Client/ResetPasswordController.php index da3a5ad..9b66070 100644 --- a/app/Http/Controllers/Client/ResetPasswordController.php +++ b/app/Http/Controllers/Client/ResetPasswordController.php @@ -13,7 +13,8 @@ class ResetPasswordController extends CubistFrontController { public function view(Request $request) { - $page = Menu::getNavigation()->findOneById(157)->getEntity(); + $page = Menu::getNavigation()->findOneBy('template', 'change_password')->getEntity(); + $email = $request->get('email'); $token = $request->get('token'); @@ -24,13 +25,14 @@ class ResetPasswordController extends CubistFrontController $path = "changer-votre-mot-de-passe"; $nav = Menu::getNavigation(); - $item = $nav->findItemWithURL($path,true); + $item = $nav->findItemWithURL($path, true); $this->data['item'] = $item; return view('pages.change_password', $this->data); } - public function resetPassword(Request $request) { + public function resetPassword(Request $request) + { $request['email'] = str_replace('%40', '@', $request->email); $request->validate([ 'token' => 'required',