mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +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',
|
||||
array(
|
||||
'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'),
|
||||
'value' => '/\@[^$]+$/',
|
||||
'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'
|
||||
),
|
||||
'validators' => array(
|
||||
new Zend_Validate_Callback(function ($value) {
|
||||
return @preg_match($value, '') !== false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user