mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 17:33:44 +08:00
52c5cf33f8
- Allow revoking keys without deleting them - Auto-revoke keys after a period of no use (default 6 months) - Allow multiple keys per user - Allow attaching a description to each key, for easier auditing - Log changes to keys in the staff action log - Move all key management to one place, and improve the UI
27 lines
902 B
Handlebars
27 lines
902 B
Handlebars
{{#link-to 'adminApiKeys.index' class="go-back"}}
|
|
{{d-icon 'arrow-left'}}
|
|
{{i18n 'admin.api.all_api_keys'}}
|
|
{{/link-to}}
|
|
|
|
<div class="api-key">
|
|
{{#admin-form-row label="admin.api.description"}}
|
|
{{input value=model.description maxlength="255" placeholder=(i18n "admin.api.description_placeholder")}}
|
|
{{/admin-form-row}}
|
|
|
|
{{#admin-form-row label="admin.api.user_mode"}}
|
|
{{combo-box content=userModes value=userMode onSelect=(action "changeUserMode")}}
|
|
{{/admin-form-row}}
|
|
|
|
{{#if showUserSelector}}
|
|
{{#admin-form-row label="admin.api.user"}}
|
|
{{user-selector single="true"
|
|
usernames=model.username
|
|
placeholderKey="admin.api.user_placeholder"
|
|
}}
|
|
{{/admin-form-row}}
|
|
{{/if}}
|
|
|
|
{{#admin-form-row}}
|
|
{{d-button icon="check" label="admin.api.save" action=(action "save") class="btn-primary" disabled=saveDisabled}}
|
|
{{/admin-form-row}}
|
|
</div> |