ExternalBackendForm: set default username envvar explicitly
refs #12164
This commit is contained in:
parent
d9330486e9
commit
846f8ec3d8
|
@ -57,11 +57,17 @@ class ExternalBackendForm extends Form
|
|||
)
|
||||
);
|
||||
|
||||
$hasRemoteUser = false;
|
||||
foreach (ExternalBackend::$remoteUserEnvvars as $envvar) {
|
||||
if (ExternalBackend::getRemoteUser($envvar) !== null) {
|
||||
$hasRemoteUser = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (! $hasRemoteUser) {
|
||||
$envvar = 'REMOTE_USER';
|
||||
}
|
||||
|
||||
$this->addElement(
|
||||
'text',
|
||||
'username_envvar',
|
||||
|
|
Loading…
Reference in New Issue