diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 77da651038..985f642270 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -416,6 +416,7 @@ class SettingsController extends Controller // Because public demos make people act like dicks if (!config('app.lock_passwords')) { + $request->validate(['site_name' => 'required']); $setting->site_name = $request->input('site_name'); $setting->custom_css = $request->input('custom_css'); diff --git a/app/Models/Setting.php b/app/Models/Setting.php index 5a6b216167..30600aea56 100755 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -49,7 +49,6 @@ class Setting extends Model * @var array */ protected $rules = [ - 'site_name' => 'required', 'brand' => 'required|min:1|numeric', 'qr_text' => 'max:31|nullable', 'alert_email' => 'email_array|nullable',