mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Add validation and fillable fields
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
bc9b47c46d
commit
054a2ab9d4
|
@ -76,6 +76,7 @@ class Setting extends Model
|
||||||
'audit_interval' => 'numeric|nullable',
|
'audit_interval' => 'numeric|nullable',
|
||||||
'custom_forgot_pass_url' => 'url|nullable',
|
'custom_forgot_pass_url' => 'url|nullable',
|
||||||
'privacy_policy_link' => 'nullable|url',
|
'privacy_policy_link' => 'nullable|url',
|
||||||
|
'google_redirect' => 'nullable|url',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
|
@ -86,6 +87,10 @@ class Setting extends Model
|
||||||
'webhook_endpoint',
|
'webhook_endpoint',
|
||||||
'webhook_channel',
|
'webhook_channel',
|
||||||
'webhook_botname',
|
'webhook_botname',
|
||||||
|
'google_login',
|
||||||
|
'google_client_id',
|
||||||
|
'google_client_secret',
|
||||||
|
'google_redirect',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue