src/Dev/Install/InstallConfig.php
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
        ];
    }
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
        ];
    }
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 ] ; }
Get admin config from the environment

@param array $request
@param bool $realPassword Set to true to get the real password. If false, any non-posted
password will be redacted as '********'. Note: Posted passwords are considered disclosed and
never redacted.
@return array
Get admin config from the environment