From 775695412b28b6a36d439e26e471cd71aa5a8eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 23 Jul 2021 14:10:25 +0200 Subject: [PATCH] fix password reset handle result code --- app/Http/Controllers/CustomerController.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/CustomerController.php b/app/Http/Controllers/CustomerController.php index 7e271b43..3f5b2b4d 100644 --- a/app/Http/Controllers/CustomerController.php +++ b/app/Http/Controllers/CustomerController.php @@ -342,9 +342,13 @@ class CustomerController extends Controller case 107: return back() ->withErrors("Veuillez vérifier que vous avez correctement rempli les champs obligatoires."); - case 108 || 109: + case 108: + case 109: return back() - ->withErrors("Changement impossible, compte inexistant."); + ->withErrors(trans('Changement impossible, compte inexistant.')); + case 123: + return back() + ->withErrors(trans('Vous ne pouvez utilisez un de vos anciens mots de passe')); default: return back() ->withErrors("Une erreur est survenue, merci de réessayer ultérieurement.");