Customize the login page
The login page is part of the distribution's access settings. Saving it applies to the live site immediately and does not create a deployment.
On Security, choose the distribution and fill in the English and Japanese title and text, an accent colour such as #336699, and the default language. The preview on the right switches between English and 日本語. Choose Require a password to save. Leave the password blank to keep the one already set.
You can ask an agent, use the CLI, or call the API.
text
On acme-marketing, set the login page title to "Client preview" in English and "クライアント確認" in Japanese, with accent #336699, and keep the current password.bash
edge api PATCH /v1/distributions/d3f7a1c4-90b2-4e6a-8f15-6c2b7e0a9d38 --input - <<'EOF'
{
"access": {
"mode": "password",
"login_page": {
"accent": "#336699",
"title": { "en": "Client preview", "ja": "クライアント確認" },
"body": { "en": "Enter the shared password.", "ja": "共有パスワードを入力してください。" },
"default_language": "ja"
}
}
}
EOFbash
curl -s -X PATCH \
https://api.edge.deca-dev.com/v1/distributions/d3f7a1c4-90b2-4e6a-8f15-6c2b7e0a9d38 \
-H "Authorization: Bearer $EDGE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"access": {
"mode": "password",
"login_page": {
"accent": "#336699",
"title": { "en": "Client preview", "ja": "クライアント確認" },
"body": { "en": "Enter the shared password.", "ja": "共有パスワードを入力してください。" },
"default_language": "ja"
}
}
}'default_language is auto, en, or ja. auto follows the visitor's browser. Visitors can still switch language on the page. A logo, when set, is a path on the distribution such as /logo.svg.