From 3886da8941b01af7d4f7c63a141ea2bde49854c3 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 9 Oct 2024 22:15:49 +0100 Subject: [PATCH] Remove form request from get LDAP method Signed-off-by: snipe --- app/Http/Controllers/SettingsController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 3d3cabd486..aa773d9eea 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -846,11 +846,11 @@ class SettingsController extends Controller * * @since [v4.0] */ - public function getLdapSettings(StoreLdapSettings $request) : View + public function getLdapSettings() : View { $setting = Setting::getSettings(); $groups = Group::pluck('name', 'id'); - return view('settings.ldap', compact('setting', 'groups'))->withErrors($setting->getErrors()); + return view('settings.ldap', compact('setting', 'groups')); } /** @@ -861,7 +861,6 @@ class SettingsController extends Controller */ public function postLdapSettings(StoreLdapSettings $request) : RedirectResponse { - \Log::error('Controller loaded'); if (is_null($setting = Setting::getSettings())) { return redirect()->to('admin')->with('error', trans('admin/settings/message.update.error')); }