Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Document plan management login tips.

Tim Abbott9423ccecd438
diff --git a/corporate/tests/test_remote_billing.py b/corporate/tests/test_remote_billing.py
index 65cd1fa91dd..e681bf8bece 100644
--- a/corporate/tests/test_remote_billing.py
+++ b/corporate/tests/test_remote_billing.py
@@ -877,9 +877,7 @@ class LegacyServerLoginTest(RemoteServerTestCase):
def test_server_login_get(self) -> None:
result = self.client_get("/serverlogin/", subdomain="selfhosting")
self.assertEqual(result.status_code, 200)
- self.assert_in_success_response(
- ["Authenticate server for Zulip billing management"], result
- )
+ self.assert_in_success_response(["Authenticate server for Zulip plan management"], result)
def test_server_login_invalid_zulip_org_id(self) -> None:
result = self.client_post(
diff --git a/docs/production/mobile-push-notifications.md b/docs/production/mobile-push-notifications.md
index 45310287eef..6112f1c9919 100644
--- a/docs/production/mobile-push-notifications.md
+++ b/docs/production/mobile-push-notifications.md
@@ -64,6 +64,53 @@ Congratulations! You've successfully set up the service. You can now test mobile
push notifications by following [these
instructions](https://zulip.com/help/mobile-notifications#testing-mobile-notifications).
+## Plan management for a Zulip organization
+
+On a self-hosted Zulip server running Zulip 8.0+, [organization
+owners](https://zulip.com/help/roles-and-permissions) and billing administrators
+can conveniently access plan management from the Zulip app. See [help center
+documentation](https://zulip.com/help/self-hosted-billing) for detailed
+instructions.
+
+You can add billing administrators using the `change_user_role` [management
+command][management-commands], passing [the organization's
+`string_id`][accessing-string-id], and the email address of the Zulip user who
+should be added as a billing administrator.
+
+```
+/home/zulip/deployments/current/manage.py change_user_role -r '' [email protected] is_billing_admin
+```
+
+You can remove a user's billing administrator permissions with the `--revoke`
+option:
+
+```
+/home/zulip/deployments/current/manage.py change_user_role --revoke -r '' [email protected] is_billing_admin
+```
+
+[management-commands]: ../production/management-commands.md
+[accessing-string-id]: https://zulip.readthedocs.io/en/stable/production/management-commands.html#accessing-an-organization-s-string-id
+
+## Plan management for an entire Zulip server
+
+Servers running Zulip releases older than Zulip 8.0 can start the plan
+management log in process at
+<https://selfhosting.zulip.com/serverlogin>. This option is also
+available for Zulip 8.0+ servers, and makes it possible to use a
+single plan for multiple organizations on one installation. See [help
+center documentation](https://zulip.com/help/self-hosted-billing) for
+detailed log in instructions.
+
+You will use your server's `zulip_org_id` and `zulip_org_key` as the username
+and password to access plan management. You can obtain these from
+`/etc/zulip/zulip-secrets.conf` on your Zulip server, or via the following
+commands:
+
+```
+/home/zulip/deployments/current/scripts/get-django-setting ZULIP_ORG_ID
+/home/zulip/deployments/current/scripts/get-django-setting ZULIP_ORG_KEY
+```
+
## Why a push notification service is necessary
Both Google's and Apple's push notification services have a security
diff --git a/templates/corporate/legacy_server_login.html b/templates/corporate/legacy_server_login.html
index 9a07a098e6f..3db9d5778a1 100644
--- a/templates/corporate/legacy_server_login.html
+++ b/templates/corporate/legacy_server_login.html
@@ -1,14 +1,14 @@
{% extends "zerver/portico.html" %}
{% set entrypoint = "upgrade" %}
-{% set PAGE_TITLE = "Authenticate server for Zulip billing management" %}
+{% set PAGE_TITLE = "Authenticate server for Zulip plan management" %}
{% block portico_content %}
<div id="server-login-page" class="register-account flex full-page">
<div class="center-block new-style">
<div class="pitch">
- <h1>Authenticate server<br/>for Zulip billing management</h1>
+ <h1>Authenticate server<br/>for Zulip plan management</h1>
</div>
<div class="white-box">
<div id="server-login-page-details">
@@ -23,15 +23,13 @@
{% endif %}
<div id="server-login-form-title" class="input-box server-login-form no-validation">
<div class="not-editable-realm-field">
- Authenticate your server with Zulip's billing management system.
+ To access plan management for a Zulip
+ server, first enter <a href="https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html#plan-management-for-an-entire-zulip-server">your server's credentials</a>.
</div>
</div>
<div class="input-box server-login-form-field">
<label for="zulip-org-id" class="inline-block label-title">
zulip_org_id
- <a href="https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html" target="_blank">
- <i class="fa fa-question-circle-o" aria-hidden="true"></i>
- </a>
</label>
<input id="zulip-org-id" name="zulip_org_id" class="required" type="text"/>
<div class="alert alert-danger server-login-form-field-error zulip_org_id-error"></div>