From 8739a9da7363bf520a5db1fad4a5a9563e656a34 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon <54990055+sukhwinder33445@users.noreply.github.com> Date: Thu, 7 Sep 2023 13:37:10 +0200 Subject: [PATCH] Fix setup wizard (#5094) --- application/forms/Config/Resource/DbResourceForm.php | 3 ++- modules/setup/application/forms/AdminAccountPage.php | 3 ++- modules/setup/application/forms/DatabaseCreationPage.php | 3 ++- public/css/icinga/setup.less | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/application/forms/Config/Resource/DbResourceForm.php b/application/forms/Config/Resource/DbResourceForm.php index 331731368..c9d7601c0 100644 --- a/application/forms/Config/Resource/DbResourceForm.php +++ b/application/forms/Config/Resource/DbResourceForm.php @@ -153,7 +153,8 @@ class DbResourceForm extends Form 'required' => true, 'renderPassword' => true, 'label' => $this->translate('Password'), - 'description' => $this->translate('The password to use for authentication') + 'description' => $this->translate('The password to use for authentication'), + 'autocomplete' => 'new-password' ) ); $this->addElement( diff --git a/modules/setup/application/forms/AdminAccountPage.php b/modules/setup/application/forms/AdminAccountPage.php index 97f0e96fd..7e34ed651 100644 --- a/modules/setup/application/forms/AdminAccountPage.php +++ b/modules/setup/application/forms/AdminAccountPage.php @@ -224,7 +224,8 @@ class AdminAccountPage extends Form 'label' => $this->translate('Password'), 'description' => $this->translate( 'Enter the password to assign to the newly created account.' - ) + ), + 'autocomplete' => 'new-password' ) ); $this->addElement( diff --git a/modules/setup/application/forms/DatabaseCreationPage.php b/modules/setup/application/forms/DatabaseCreationPage.php index 8660a21f5..f7092a176 100644 --- a/modules/setup/application/forms/DatabaseCreationPage.php +++ b/modules/setup/application/forms/DatabaseCreationPage.php @@ -109,7 +109,8 @@ class DatabaseCreationPage extends Form array( 'renderPassword' => true, 'label' => $this->translate('Password'), - 'description' => $this->translate('The password for the database user defined above') + 'description' => $this->translate('The password for the database user defined above'), + 'autocomplete' => 'new-password' ) ); diff --git a/public/css/icinga/setup.less b/public/css/icinga/setup.less index c848bc7dd..5748c8e52 100644 --- a/public/css/icinga/setup.less +++ b/public/css/icinga/setup.less @@ -145,6 +145,7 @@ .control-button, input[type="submit"] { .button(); + justify-content: center; } .control-button[disabled] { @@ -160,7 +161,7 @@ } } - button.finish, a.button-like.login { + button.finish, a.button-link.login { min-width: 25em; }