From 0e67583da5381c949812a9e163d11f94a18f5b88 Mon Sep 17 00:00:00 2001 From: Henrik Jess Nielsen Date: Fri, 22 May 2026 21:49:09 +0200 Subject: [PATCH] feat: show Demo Bank credentials on Step 3 with copy buttons Adds a credential hint box directly in the Tink Link connection UI showing username (u04877810) and password (vxw774) with copy buttons. No more hunting in Tink Console during a demo. --- src/templates/base.html | 8 ++++++++ src/templates/step.html | 27 +++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/src/templates/base.html b/src/templates/base.html index 05f5416..7359b07 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -106,6 +106,14 @@ if (btn) { btn.textContent = '✓ Kopieret'; setTimeout(() => btn.textContent = 'Kopier', 2000); } }); } + function copyText(id, btn) { + const el = document.getElementById(id); + navigator.clipboard.writeText(el.innerText).then(() => { + const orig = btn.textContent; + btn.textContent = '✓'; + setTimeout(() => btn.textContent = orig, 2000); + }); + } diff --git a/src/templates/step.html b/src/templates/step.html index 2f3a4c6..16f0a88 100644 --- a/src/templates/step.html +++ b/src/templates/step.html @@ -144,6 +144,33 @@ + +
+
+ + Demo Bank Credentials +
+
+
+
Username
+
+ u04877810 + +
+
+
+
Password
+
+ vxw774 + +
+
+
+

Vælg Tink Demo Bank → Open Banking → Password And OTP

+
+