mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
Do not use a default regular expression for stripping off parts of a username when configuring an auto-login backend
There's no safe default for this.
This commit is contained in:
parent
e1bedc9afe
commit
cfb52eeadb
@ -53,8 +53,10 @@ class AutologinBackendForm extends Form
|
|||||||
'strip_username_regexp',
|
'strip_username_regexp',
|
||||||
array(
|
array(
|
||||||
'label' => t('Filter Pattern'),
|
'label' => t('Filter Pattern'),
|
||||||
'description' => t('The regular expression to use to strip specific parts off from usernames. Leave empty if you do not want to strip off anything'),
|
'description' => t(
|
||||||
'value' => '/\@[^$]+$/',
|
'The regular expression to use to strip specific parts off from usernames.'
|
||||||
|
. ' Leave empty if you do not want to strip off anything'
|
||||||
|
),
|
||||||
'validators' => array(
|
'validators' => array(
|
||||||
new Zend_Validate_Callback(function ($value) {
|
new Zend_Validate_Callback(function ($value) {
|
||||||
return @preg_match($value, '') !== false;
|
return @preg_match($value, '') !== false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user