mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:13:22 +08:00
19d7545318
This is a possible solution for https://meta.discourse.org/t/user-api-keys-specification/48536/19 This allows for user-api-key requests to not require a redirect url. Instead, the encypted payload will just be displayed after creation ( which can be copied pasted into an env for a CLI, for example ) Also: Show instructions when creating user-api-key w/out redirect This adds a view to show instructions when requesting a user-api-key without a redirect. It adds a erb template and json format. Also adds a i18n user_api_key.instructions for server.en.yml
3 lines
111 B
Plaintext
3 lines
111 B
Plaintext
<p><%= t("user_api_key.instructions", application_name: @application_name) %></p>
|
|
<code><%= @payload %></code>
|