diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 853049d205..be8e38075c 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -77,16 +77,16 @@ class Handler extends ExceptionHandler { return response()->json(['message'=>'Fatal error', 500]); } -/* else if ($exception instanceof \Illuminate\Session\TokenMismatchException) + else if ($exception instanceof \Illuminate\Session\TokenMismatchException) { return redirect() ->back() - ->withInput($request->except('password')) + ->withInput($request->except('password', 'password_confirmation', '_token')) ->with([ 'message' => ctrans('texts.token_expired'), 'message-type' => 'danger']); } -*/ + return parent::render($request, $exception); } diff --git a/app/Http/Controllers/ClientPortal/ProfileController.php b/app/Http/Controllers/ClientPortal/ProfileController.php index 2f2cb45bc5..82625f0887 100644 --- a/app/Http/Controllers/ClientPortal/ProfileController.php +++ b/app/Http/Controllers/ClientPortal/ProfileController.php @@ -90,14 +90,9 @@ class ProfileController extends Controller return back(); } - public function settings() + public function updateClient(UpdateSettingsRequest $request, ClientContact $client_contact) { - return view('portal.default.settings.index'); - } - - public function updateSettings(UpdateSettingsRequest $request) - { - +dd("hi"); return back(); } } diff --git a/resources/views/portal/default/profile/client_information.blade.php b/resources/views/portal/default/profile/client_information.blade.php new file mode 100644 index 0000000000..7ae6adb0b7 --- /dev/null +++ b/resources/views/portal/default/profile/client_information.blade.php @@ -0,0 +1,34 @@ +