A free open source IT asset/license management system
Apply validation
Marcus Moore34cd106357b7
diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.phpindex 7a7aa45b6e..9124d8d5a6 100755--- a/app/Http/Controllers/SettingsController.php+++ b/app/Http/Controllers/SettingsController.php@@ -420,6 +420,7 @@ class SettingsController extends Controller// Only allow the site name and CSS to be changed if lock_passwords is false// Because public demos make people act like dicksif (! config('app.lock_passwords')) {+ $request->validate(['site_name' => 'required']);$setting->site_name = $request->input('site_name');$setting->custom_css = $request->input('custom_css');}