public function getAdminConfig($request, $realPassword = true)
    {
        if (isset($request['admin'])) {
            $config = $request['admin'];
            if (isset($config['password']) && $config['password'] === Installer::PASSWORD_PLACEHOLDER) {
                $config['password'] = Environment::getEnv('SS_DEFAULT_ADMIN_PASSWORD') ?: '';
            }
            return $request['admin'];
        }

        return [
            'username' => Environment::getEnv('SS_DEFAULT_ADMIN_USERNAME') ?: 'admin',
            'password' => $realPassword
                ? (Environment::getEnv('SS_DEFAULT_ADMIN_PASSWORD') ?: '')
                : Installer::PASSWORD_PLACEHOLDER, // Avoid password disclosure
        ];
    }