[icinga-checkins] icinga.org: icingaweb2/bugfix/evaluate-redirect_remote_user-12164: setup/ AdminAccountPage: respect previously configured envvar when suggesting admin username

git at icinga.org git at icinga.org
Tue Oct 18 15:39:46 CEST 2016


Module: icingaweb2
Branch: bugfix/evaluate-redirect_remote_user-12164
Commit: f8501aa80d413cb36abc2afec677f14e47a81c05
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=f8501aa80d413cb36abc2afec677f14e47a81c05

Author: Alexander A. Klimov <alexander.klimov at icinga.com>
Date:   Tue Oct 18 15:38:03 2016 +0200

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

refs #12164

---

 modules/setup/application/forms/AdminAccountPage.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/setup/application/forms/AdminAccountPage.php b/modules/setup/application/forms/AdminAccountPage.php
index 6e8fe26..b636063 100644
--- a/modules/setup/application/forms/AdminAccountPage.php
+++ b/modules/setup/application/forms/AdminAccountPage.php
@@ -270,7 +270,7 @@ class AdminAccountPage extends Form
      */
     protected function getUsername()
     {
-        $name = ExternalBackend::getRemoteUser(null);
+        $name = ExternalBackend::getRemoteUser($this->backendConfig['username_envvar']);
         if ($name === null) {
             return '';
         }



More information about the icinga-checkins mailing list