mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Make 'modules/monitoring/config.ini' doesn't have to exist
This commit is contained in:
parent
b146a8c311
commit
30d0ebcdfd
@ -21,13 +21,14 @@ class SecurityForm extends Form
|
|||||||
*/
|
*/
|
||||||
public function create()
|
public function create()
|
||||||
{
|
{
|
||||||
|
$default = '*pw*,*pass*,community';
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
'protected_customvars',
|
'protected_customvars',
|
||||||
array(
|
array(
|
||||||
'label' => 'Protected Custom Variables',
|
'label' => 'Protected Custom Variables',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'value' => $this->config->protected_customvars,
|
'value' => $this->config ? $this->config->get('protected_customvars', $default) : $default,
|
||||||
'helptext' => 'Comma separated case insensitive list of protected custom variables.'
|
'helptext' => 'Comma separated case insensitive list of protected custom variables.'
|
||||||
. ' Use * as a placeholder for zero or more wildcard characters.'
|
. ' Use * as a placeholder for zero or more wildcard characters.'
|
||||||
. ' Existance of those custom variables will be shown, but their values will be masked.'
|
. ' Existance of those custom variables will be shown, but their values will be masked.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user