Summary
After successful Modx installation with docker (https://github.com/modxcms/docker-modx/blob/9162b979bd6b35d749849a49b1acd6e7afef0bb7/docker-entrypoint.sh) cant login to Manager because password is incorrect. I have found out that password contains XML special character > (greater than) and would love to somehow escape that without forcing users/devs to set passwords without special chars ( < (<), & (&), > (>), " ("), and ' (') .)
Step to reproduce
cat >setup/config.xml <<EOF
<modx>
<database_type>mysql</database_type>
<database_server>$MODX_DB_HOST</database_server>
<database>$MODX_DB_NAME</database>
<database_user>$MODX_DB_USER</database_user>
<database_password>$MODX_DB_PASSWORD</database_password>
<database_connection_charset>$MODX_DB_CHARSET</database_connection_charset>
<database_charset>$MODX_DB_CHARSET</database_charset>
<database_collation>$MODX_DB_CHARSET_COLLATION</database_collation>
<table_prefix>$MODX_TABLE_PREFIX</table_prefix>
<https_port>$MODX_HTTPS_PORT</https_port>
<http_host>$MODX_HTTP_HOST</http_host>
<cache_disabled>0</cache_disabled>
<inplace>0</inplace>
<unpacked>0</unpacked>
<language>$MODX_LANGUAGE</language>
<cmsadmin>$MODX_CMS_ADMIN</cmsadmin>
<cmspassword>$MODX_CMS_PASS</cmspassword>
<cmsadminemail>$MODX_CMS_EMAIL</cmsadminemail>
<core_path>$MODX_CORE_PATH</core_path>
<context_mgr_path>$MODX_CONTEXT_MANAGER_PATH</context_mgr_path>
<context_mgr_url>$MODX_CONTEXT_MANAGER_URL</context_mgr_url>
<context_connectors_path>$MODX_CONTEXT_CONNECTORS_PATH</context_connectors_path>
<context_connectors_url>$MODX_CONTEXT_CONNECTORS_URL</context_connectors_url>
<context_web_path>$MODX_CONTEXT_WEB_PATH</context_web_path>
<context_web_url>$MODX_CONTEXT_WEB_URL</context_web_url>
<remove_setup_directory>$MODX_REMOVE_SETUP_DIRECTORY</remove_setup_directory>
</modx>
EOF
$MODX_CMS_PASS is a problem cause env variable contains >.
If i change password to 12345678 i can log in normally.
Does anybody know how to solve this?
Thank you all guyz!