clear()
->update($db->quoteName('#__users'))
- ->set($db->quoteName('name') . ' = ' . $db->quote('Super User'))
- ->set($db->quoteName('username') . ' = ' . $db->quote(trim($options->admin_user)))
+ ->set($db->quoteName('name') . ' = ' . $db->quote(trim($options->admin_user)))
+ ->set($db->quoteName('username') . ' = ' . $db->quote(trim($options->admin_username)))
->set($db->quoteName('email') . ' = ' . $db->quote($options->admin_email))
->set($db->quoteName('password') . ' = ' . $db->quote($cryptpass))
->set($db->quoteName('block') . ' = 0')
@@ -325,7 +325,8 @@ class ConfigurationModel extends BaseInstallationModel
else
{
$columns = array(
- $db->quoteName('id'), $db->quoteName('name'),
+ $db->quoteName('id'),
+ $db->quoteName('name'),
$db->quoteName('username'),
$db->quoteName('email'),
$db->quoteName('password'),
@@ -340,7 +341,7 @@ class ConfigurationModel extends BaseInstallationModel
->insert('#__users', true)
->columns($columns)
->values(
- $db->quote($userId) . ', ' . $db->quote('Super User') . ', ' . $db->quote(trim($options->admin_user)) . ', ' .
+ $db->quote($userId) . ', ' . $db->quote(trim($options->admin_user)) . ', ' . $db->quote(trim($options->admin_username)) . ', ' .
$db->quote($options->admin_email) . ', ' . $db->quote($cryptpass) . ', ' .
$db->quote('0') . ', ' . $db->quote('1') . ', ' . $db->quote($installdate) . ', ' . $db->quote($nullDate) . ', ' .
$db->quote('0') . ', ' . $db->quote('')
diff --git a/installation/tmpl/setup/default.php b/installation/tmpl/setup/default.php
index 64726750825..e56a4dcf297 100644
--- a/installation/tmpl/setup/default.php
+++ b/installation/tmpl/setup/default.php
@@ -56,6 +56,10 @@ use Joomla\CMS\Language\Text;
form->getLabel('admin_user'); ?>
form->getInput('admin_user'); ?>
+
+ form->getLabel('admin_username'); ?>
+ form->getInput('admin_username'); ?>
+
form->getLabel('admin_password'); ?>
form->getInput('admin_password'); ?>
diff --git a/tests/Codeception/acceptance.suite.yml b/tests/Codeception/acceptance.suite.yml
index 6110a9471f4..b6315417e39 100644
--- a/tests/Codeception/acceptance.suite.yml
+++ b/tests/Codeception/acceptance.suite.yml
@@ -18,6 +18,7 @@ modules:
capabilities:
'goog:chromeOptions':
args: ["headless", "disable-gpu", "no-sandbox", "window-size=1920x1080"]
+ name: 'jane doe' # Name for the Administrator
username: 'admin' # UserName for the Administrator
password: 'admin' # Password for the Administrator
database host: 'mysql' # place where the Application is Hosted #server Address