setup/AdminAccountPage: respect previously configured envvar when suggesting admin username
refs #12164
This commit is contained in:
parent
d6ac6c8374
commit
f8501aa80d
|
@ -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 '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue