ExternalBackendForm: make the variable a webserver assigns a username to configurable

refs #12164
This commit is contained in:
Alexander A. Klimov 2016-10-18 13:44:01 +02:00
parent 4d6160d987
commit 790d83cb72
1 changed files with 12 additions and 0 deletions

View File

@ -55,6 +55,18 @@ class ExternalBackendForm extends Form
'validators' => array($callbackValidator)
)
);
$this->addElement(
'text',
'username_envvar',
array(
'label' => $this->translate('Username Environment Variable'),
'description' => $this->translate(
'The environment variable the webserver assigns the authenticated user\'s name to.'
),
'required' => true,
'value' => 'REMOTE_USER'
)
);
$this->addElement(
'hidden',
'backend',