diff --git a/packages/Webkul/Customer/src/Http/Controllers/ForgotPasswordController.php b/packages/Webkul/Customer/src/Http/Controllers/ForgotPasswordController.php index 28975acd7..eef822637 100755 --- a/packages/Webkul/Customer/src/Http/Controllers/ForgotPasswordController.php +++ b/packages/Webkul/Customer/src/Http/Controllers/ForgotPasswordController.php @@ -61,7 +61,7 @@ class ForgotPasswordController extends Controller return back() ->withInput(request(['email'])) ->withErrors([ - 'email' => trans($response), + 'email' => trans('customer::app.forget_password.email_not_exist'), ]); } catch (\Swift_RfcComplianceException $e) { session()->flash('success', trans('customer::app.forget_password.reset_link_sent')); diff --git a/packages/Webkul/Customer/src/Resources/lang/en/app.php b/packages/Webkul/Customer/src/Resources/lang/en/app.php index 2142a535e..6d972b9bc 100755 --- a/packages/Webkul/Customer/src/Resources/lang/en/app.php +++ b/packages/Webkul/Customer/src/Resources/lang/en/app.php @@ -15,6 +15,7 @@ return [ 'empty' => 'You have not reviewed any of product yet' ], 'forget_password' => [ - 'reset_link_sent' => 'We have e-mailed your reset password link.' + 'reset_link_sent' => 'We have e-mailed your reset password link.', + 'email_not_exist' => 'Email Does not Exist' ] ]; \ No newline at end of file diff --git a/packages/Webkul/User/src/Http/Controllers/ForgetPasswordController.php b/packages/Webkul/User/src/Http/Controllers/ForgetPasswordController.php index 67c3a1971..2a513ecf6 100755 --- a/packages/Webkul/User/src/Http/Controllers/ForgetPasswordController.php +++ b/packages/Webkul/User/src/Http/Controllers/ForgetPasswordController.php @@ -65,7 +65,7 @@ class ForgetPasswordController extends Controller ); if ($response == Password::RESET_LINK_SENT) { - session()->flash('success', trans($response)); + session()->flash('success', trans('customer::app.forget_password.reset_link_sent')); return back(); } @@ -73,7 +73,7 @@ class ForgetPasswordController extends Controller return back() ->withInput(request(['email'])) ->withErrors([ - 'email' => trans($response), + 'email' => trans('customer::app.forget_password.email_not_exist'), ]); } catch(\Exception $e) { session()->flash('error', trans($e->getMessage()));