diff --git a/site/src/pages/admin/index.astro b/site/src/pages/admin/index.astro index 199244a..5e44ef0 100644 --- a/site/src/pages/admin/index.astro +++ b/site/src/pages/admin/index.astro @@ -408,10 +408,26 @@ const authUrl = import.meta.env.PUBLIC_AUTH_URL ?? ''; const resetUrl = authUrl ? `${authUrl}/reset-password/?code=${d.code}` : `/reset-password/?code=${d.code}`; - btn.textContent = '🔗 Copy reset link'; - btn.title = resetUrl; - btn.classList.add('text-yellow-300'); - btn.addEventListener('click', () => navigator.clipboard.writeText(resetUrl), { once: true }); + // Show the URL inline so the admin can always see and copy it + const cell = btn.closest('td')!; + btn.remove(); + cell.innerHTML = ` +