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

@ -48,7 +48,7 @@ In the optional fold:
1. User clicks **Create my bank account**. 1. User clicks **Create my bank account**.
2. Browser calls `GET /intro/auto-account.json` (no form fields). 2. Browser calls `GET /intro/auto-account.json` (no form fields).
3. Server registers a new libeufin user via public `POST /accounts`. 3. Server registers a new libeufin user via public `POST /accounts`.
4. UI shows **username / password / balance GOA:0** once (“created for you”; 4. UI shows **username / password** once (“created for you”;
not stored for recovery). not stored for recovery).
5. Username shape: **`goa-account-<random>`** (shown to the user). 5. Username shape: **`goa-account-<random>`** (shown to the user).
Password embeds **`pleasechangeme`** with random chars around it. Password embeds **`pleasechangeme`** with random chars around it.

View file

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