setup/AdminAccountPage: respect previously configured envvar when suggesting admin username

refs #12164
This commit is contained in:
Alexander A. Klimov 2016-10-18 15:38:03 +02:00
parent d6ac6c8374
commit f8501aa80d
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ class AdminAccountPage extends Form
*/ */
protected function getUsername() protected function getUsername()
{ {
$name = ExternalBackend::getRemoteUser(null); $name = ExternalBackend::getRemoteUser($this->backendConfig['username_envvar']);
if ($name === null) { if ($name === null) {
return ''; return '';
} }