Apply validation

This commit is contained in:
Marcus Moore 2023-11-14 12:25:18 -08:00
parent 714fce7e59
commit 34cd106357
No known key found for this signature in database

View file

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