final fixed

This commit is contained in:
Akhtar Khan 2020-09-02 11:10:21 +05:30
parent 9657a99774
commit ced3907595
3 changed files with 5 additions and 4 deletions

View File

@ -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'));

View File

@ -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'
]
];

View File

@ -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()));