3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 22:25:30 +00:00

Merge pull request #13882 from marcusmoore/fixes/jquery-validation

Fix client side validation in the v7 branch
This commit is contained in:
snipe
2023-12-05 17:26:48 +00:00
committed by GitHub
17 changed files with 65 additions and 23 deletions

View File

@ -421,6 +421,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');
}