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:
@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user