Skip to content

A free open source IT asset/license management system

Validation for new alert settings

snipec4a699f10972
diff --git a/app/Models/Setting.php b/app/Models/Setting.php
index 4d2dc9bbf4..1d2706229b 100755
--- a/app/Models/Setting.php
+++ b/app/Models/Setting.php
@@ -13,6 +13,8 @@ class Setting extends Model
protected $rules = [
"site_name" => 'required|min:1',
"brand" => 'required|min:1|numeric',
+ "alert_threshold" => 'numeric',
+ "alert_interval" => 'numeric',
"qr_text" => 'min:1|max:31',
"custom_css" => 'string',
"slack_endpoint" => 'url',