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:
parent
01ab46b0a1
commit
6e808c2ab1
2 changed files with 3 additions and 6 deletions
|
|
@ -48,7 +48,7 @@ In the optional fold:
|
|||
1. User clicks **Create my bank account**.
|
||||
2. Browser calls `GET /intro/auto-account.json` (no form fields).
|
||||
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).
|
||||
5. Username shape: **`goa-account-<random>`** (shown to the user).
|
||||
Password embeds **`pleasechangeme`** with random chars around it.
|
||||
|
|
|
|||
|
|
@ -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) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue