2024-07-31 15:55:08 +02:00
|
|
|
<div id="account-settings" class="settings-section" data-name="account-and-privacy">
|
2019-07-10 19:17:26 +02:00
|
|
|
<div class="alert" id="dev-account-settings-status"></div>
|
2017-04-26 04:52:39 +02:00
|
|
|
<div class="account-settings-form">
|
2024-08-30 21:41:22 +02:00
|
|
|
<div id="user_details_section">
|
|
|
|
<h3 class="inline-block account-settings-heading">{{t "Account" }}</h3>
|
|
|
|
<div class="alert-notification account-alert-notification" id="account-settings-status"></div>
|
|
|
|
<form class="grid">
|
|
|
|
{{#if user_has_email_set}}
|
|
|
|
<div class="input-group">
|
|
|
|
<label class="settings-field-label">{{t "Email" }}</label>
|
|
|
|
<div id="change_email_button_container" class="{{#unless user_can_change_email}}disabled_setting_tooltip{{/unless}}">
|
|
|
|
<button id="change_email_button" type="button" class="button rounded tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Change your email' }}" {{#unless user_can_change_email}}disabled="disabled"{{/unless}}>
|
|
|
|
{{current_user.delivery_email}}
|
2023-07-20 21:05:37 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
2024-08-30 21:41:22 +02:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{! Demo organizations before the owner has configured an email address. }}
|
|
|
|
<div class="input-group">
|
|
|
|
<p>
|
|
|
|
{{#tr}}
|
|
|
|
Add your email to <z-link-invite-users-help>invite other users</z-link-invite-users-help>
|
|
|
|
or <z-link-convert-demo-organization-help>convert to a permanent Zulip organization</z-link-convert-demo-organization-help>.
|
|
|
|
{{#*inline "z-link-invite-users-help"}}<a href="/help/invite-new-users" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
|
|
|
|
{{#*inline "z-link-convert-demo-organization-help"}}<a href="/help/demo-organizations#convert-a-demo-organization-to-a-permanent-organization" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
|
|
|
|
{{/tr}}
|
|
|
|
</p>
|
|
|
|
<button id="demo_organization_add_email_button" type="button" class="button rounded sea-green">
|
|
|
|
{{t "Add email"}}
|
|
|
|
</button>
|
|
|
|
</div>
|
2018-02-10 14:28:16 +01:00
|
|
|
{{/if}}
|
2024-08-30 21:41:22 +02:00
|
|
|
</form>
|
2017-12-24 19:00:29 +01:00
|
|
|
|
2024-08-30 21:41:22 +02:00
|
|
|
{{#if page_params.two_fa_enabled }}
|
|
|
|
<p for="two_factor_auth" class="inline-block title">
|
|
|
|
{{t "Two factor authentication" }}: {{#if page_params.two_fa_enabled_user }}{{t "Enabled" }}{{else}}{{t "Disabled" }}{{/if}}
|
|
|
|
<a target="_blank" rel="noopener noreferrer" id="two_factor_auth" href="/account/two_factor/" title="{{t 'Set up two factor authentication' }}">[{{t "Setup" }}]</a>
|
|
|
|
</p>
|
|
|
|
{{/if}}
|
2020-03-30 11:03:10 +02:00
|
|
|
|
2024-08-30 21:41:22 +02:00
|
|
|
<form class="password-change-form grid">
|
|
|
|
{{#if user_can_change_password}}
|
|
|
|
<div>
|
|
|
|
<label class="settings-field-label">{{t "Password" }}</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<button id="change_password" type="button" class="button rounded" data-dismiss="modal">{{t "Change your password" }}</button>
|
2022-12-20 16:52:25 +01:00
|
|
|
</div>
|
2021-06-17 18:42:31 +02:00
|
|
|
</div>
|
2024-08-30 21:41:22 +02:00
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
<div id="deactivate_account_container" class="inline-block {{#if user_is_only_organization_owner}}disabled_setting_tooltip{{/if}}">
|
|
|
|
<button type="submit" class="button rounded btn-danger" id="user_deactivate_account_button"
|
|
|
|
{{#if user_is_only_organization_owner}}disabled="disabled"{{/if}}>
|
|
|
|
{{t 'Deactivate account' }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{{#if owner_is_only_user_in_organization}}
|
|
|
|
<button type="submit" class="button rounded btn-danger deactivate_realm_button">
|
|
|
|
{{t 'Deactivate organization' }}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
2017-07-05 21:54:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-17 13:55:02 +01:00
|
|
|
|
2023-01-10 11:13:05 +01:00
|
|
|
<div id="privacy_settings_box">
|
2021-07-01 16:16:23 +02:00
|
|
|
<h3 class="inline-block">{{t "Privacy" }}</h3>
|
|
|
|
<div class="alert-notification privacy-setting-status"></div>
|
|
|
|
<div class="input-group">
|
2021-10-03 08:36:36 +02:00
|
|
|
{{> settings_checkbox
|
|
|
|
setting_name="send_private_typing_notifications"
|
|
|
|
is_checked=settings_object.send_private_typing_notifications
|
|
|
|
label=settings_label.send_private_typing_notifications
|
|
|
|
}}
|
|
|
|
{{> settings_checkbox
|
|
|
|
setting_name="send_stream_typing_notifications"
|
|
|
|
is_checked=settings_object.send_stream_typing_notifications
|
|
|
|
label=settings_label.send_stream_typing_notifications
|
|
|
|
}}
|
2021-10-03 08:53:35 +02:00
|
|
|
{{> settings_checkbox
|
|
|
|
setting_name="send_read_receipts"
|
|
|
|
is_checked=settings_object.send_read_receipts
|
|
|
|
label=settings_label.send_read_receipts
|
2022-08-05 12:13:21 +02:00
|
|
|
tooltip_text=send_read_receipts_tooltip
|
2024-02-13 02:08:24 +01:00
|
|
|
hide_tooltip=realm.realm_enable_read_receipts
|
2022-09-09 10:27:52 +02:00
|
|
|
help_link="/help/read-receipts"
|
2021-10-03 08:53:35 +02:00
|
|
|
}}
|
2022-09-21 15:49:36 +02:00
|
|
|
{{> settings_checkbox
|
|
|
|
setting_name="presence_enabled"
|
|
|
|
is_checked=settings_object.presence_enabled
|
|
|
|
label=settings_label.presence_enabled
|
2022-09-24 12:40:36 +02:00
|
|
|
label_parens_text=settings_label.presence_enabled_parens_text
|
2022-09-21 15:49:36 +02:00
|
|
|
help_link="/help/status-and-availability"
|
|
|
|
prefix="user_"}}
|
2024-09-09 12:51:38 +02:00
|
|
|
{{> settings_checkbox
|
|
|
|
setting_name="allow_private_data_export"
|
|
|
|
is_checked=settings_object.allow_private_data_export
|
|
|
|
label=settings_label.allow_private_data_export
|
2024-10-14 20:31:51 +02:00
|
|
|
help_link="/help/export-your-organization#export-your-organization"
|
2024-09-09 12:51:38 +02:00
|
|
|
}}
|
2021-07-01 16:16:23 +02:00
|
|
|
</div>
|
2021-10-27 09:48:10 +02:00
|
|
|
<div class="input-group">
|
2024-03-29 07:54:50 +01:00
|
|
|
<label for="email_address_visibility" class="settings-field-label">{{t "Who can access your email address" }}
|
2023-02-07 06:29:11 +01:00
|
|
|
{{> ../help_link_widget link="/help/configure-email-visibility" }}
|
2021-10-27 09:48:10 +02:00
|
|
|
</label>
|
2023-02-13 20:48:33 +01:00
|
|
|
<div id="user_email_address_dropdown_container" class="inline-block {{#unless user_has_email_set}}disabled_setting_tooltip{{/unless}}">
|
|
|
|
<select name="email_address_visibility" class="email_address_visibility prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number"
|
|
|
|
id="user_email_address_visibility" {{#unless user_has_email_set}}disabled="disabled"{{/unless}}>
|
|
|
|
{{> dropdown_options_widget option_values=email_address_visibility_values}}
|
|
|
|
</select>
|
|
|
|
</div>
|
2021-10-27 09:48:10 +02:00
|
|
|
</div>
|
2021-07-01 16:16:23 +02:00
|
|
|
</div>
|
|
|
|
|
2023-01-10 11:05:25 +01:00
|
|
|
<div id="api_key_button_box">
|
2018-01-25 02:11:17 +01:00
|
|
|
<h3>{{t "API key" }}</h3>
|
2017-07-05 21:54:58 +02:00
|
|
|
|
|
|
|
<div class="input-group">
|
2017-06-13 17:57:33 +02:00
|
|
|
<p class="api-key-note">
|
2021-04-14 03:04:02 +02:00
|
|
|
{{#tr}}
|
2017-07-12 22:22:07 +02:00
|
|
|
An API key can be used to programmatically access a Zulip account.
|
|
|
|
Anyone with access to your API key has the ability to read your messages, send
|
|
|
|
messages on your behalf, and otherwise impersonate you on Zulip, so you should
|
2021-04-10 05:53:13 +02:00
|
|
|
guard your API key as carefully as you guard your password. <br />
|
2017-07-12 22:22:07 +02:00
|
|
|
We recommend creating bots and using the bots' accounts and API keys to access
|
|
|
|
the Zulip API, unless the task requires access to your account.
|
2017-06-13 17:57:33 +02:00
|
|
|
{{/tr}}
|
|
|
|
</p>
|
2023-01-20 17:49:58 +01:00
|
|
|
<div id="api_key_button_container" class="inline-block {{#unless user_has_email_set}}disabled_setting_tooltip{{/unless}}">
|
|
|
|
<button class="button rounded" id="api_key_button" {{#unless user_has_email_set}}disabled="disabled"{{/unless}}>
|
2024-02-16 00:39:36 +01:00
|
|
|
{{t "Manage your API key" }}
|
2023-01-20 17:49:58 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
2017-06-13 17:57:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-12 16:43:20 +02:00
|
|
|
<!-- Render /settings/api_key_modal.hbs after #api_key_button is clicked
|
|
|
|
to avoid password being inserted by password manager too aggressively. -->
|
2017-04-26 04:52:39 +02:00
|
|
|
</div>
|
2016-10-05 02:23:09 +02:00
|
|
|
</div>
|