mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 13:58:53 +08:00
When User API Key authorization falls back to displaying the encrypted key on a page (because redirect isn't configured), users had to manually copy a long base64 string with newlines. Changes: - Add copy button using navigator.clipboard API - Button strips whitespace before copying so the key is usable immediately - Button shows "Copied!" feedback for 2 seconds after clicking - Add i18n strings for copy_key and copied states |
||
|---|---|---|
| .. | ||
| new.html.erb | ||
| otp.html.erb | ||
| show.html.erb | ||