bank landing: own-account box shows username only (drop name)

Name and username were the same value; keep the bank login username
with password. (mistakenly still mentions name in API fallback.)
This commit is contained in:
Hernâni Marques 2026-07-10 21:58:00 +02:00
parent 01ab46b0a1
commit 6e808c2ab1
No known key found for this signature in database
2 changed files with 3 additions and 6 deletions

View file

@ -1296,7 +1296,6 @@ tw balance</pre>
Login at the bank UI.
</p>
<dl class="own-acct-dl">
<div><dt>Name</dt><dd><code id="auto-account-name"></code></dd></div>
<div><dt>Username</dt><dd><code id="auto-account-user"></code></dd></div>
<div><dt>Password</dt><dd><code id="auto-account-pass"></code></dd></div>
</dl>
@ -1703,16 +1702,14 @@ tw balance</pre>
.then(function (d) {
if (!d || !d.ok) throw new Error((d && d.error) || "create failed");
if (box) box.hidden = false;
var n = document.getElementById("auto-account-name");
var u = document.getElementById("auto-account-user");
var p = document.getElementById("auto-account-pass");
if (n) n.textContent = d.name || d.display_name || "—";
if (u) u.textContent = d.username || "—";
if (u) u.textContent = d.username || d.name || d.display_name || "—";
if (p) p.textContent = d.password || "—";
if (st) {
st.textContent =
"Account created for you · " +
(d.name || d.username || "") +
(d.username || d.name || "") +
" · save username & password";
}
/* Fancy QR_Taler: encode bank UI URL (login with credentials above) */