mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 10:55:38 +00:00
Add validation and fillable fields
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
@ -76,6 +76,7 @@ class Setting extends Model
|
||||
'audit_interval' => 'numeric|nullable',
|
||||
'custom_forgot_pass_url' => 'url|nullable',
|
||||
'privacy_policy_link' => 'nullable|url',
|
||||
'google_redirect' => 'nullable|url',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
@ -86,6 +87,10 @@ class Setting extends Model
|
||||
'webhook_endpoint',
|
||||
'webhook_channel',
|
||||
'webhook_botname',
|
||||
'google_login',
|
||||
'google_client_id',
|
||||
'google_client_secret',
|
||||
'google_redirect',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user