mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-26 21:21:18 -08:00
Reverted the validation - might have an impact on quickstart setup
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
5e97ed1c7e
commit
9fe26ba814
|
@ -416,6 +416,7 @@ class SettingsController extends Controller
|
||||||
// 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');
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,6 @@ class Setting extends Model
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $rules = [
|
protected $rules = [
|
||||||
'site_name' => 'required',
|
|
||||||
'brand' => 'required|min:1|numeric',
|
'brand' => 'required|min:1|numeric',
|
||||||
'qr_text' => 'max:31|nullable',
|
'qr_text' => 'max:31|nullable',
|
||||||
'alert_email' => 'email_array|nullable',
|
'alert_email' => 'email_array|nullable',
|
||||||
|
|
Loading…
Reference in a new issue