mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
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…
x
Reference in New Issue
Block a user