mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
Apply validation
This commit is contained in:
parent
714fce7e59
commit
34cd106357
|
@ -420,6 +420,7 @@ class SettingsController extends Controller
|
||||||
// Only allow the site name and CSS to be changed if lock_passwords is false
|
// Only allow the site name and CSS to be changed if lock_passwords is false
|
||||||
// Because public demos make people act like dicks
|
// Because public demos make people act like dicks
|
||||||
if (! config('app.lock_passwords')) {
|
if (! config('app.lock_passwords')) {
|
||||||
|
$request->validate(['site_name' => 'required']);
|
||||||
$setting->site_name = $request->input('site_name');
|
$setting->site_name = $request->input('site_name');
|
||||||
$setting->custom_css = $request->input('custom_css');
|
$setting->custom_css = $request->input('custom_css');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue