bank landing: surface funny auto-account names in the UI
This commit is contained in:
parent
e2e5c12f85
commit
833567947a
1 changed files with 6 additions and 1 deletions
|
|
@ -842,6 +842,7 @@
|
|||
Login at the bank UI; balance is <strong>GOA:0</strong>.
|
||||
</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>
|
||||
<div><dt>Balance</dt><dd><code id="auto-account-bal">GOA:0</code></dd></div>
|
||||
|
|
@ -1220,15 +1221,19 @@
|
|||
.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");
|
||||
var b = document.getElementById("auto-account-bal");
|
||||
if (n) n.textContent = d.name || d.display_name || "—";
|
||||
if (u) u.textContent = d.username || "—";
|
||||
if (p) p.textContent = d.password || "—";
|
||||
if (b) b.textContent = d.balance || "GOA:0";
|
||||
if (st) {
|
||||
st.textContent =
|
||||
"Account created for you · save username & password · balance " +
|
||||
"Account created for you · " +
|
||||
(d.name || d.username || "") +
|
||||
" · save username & password · balance " +
|
||||
(d.balance || "GOA:0");
|
||||
}
|
||||
/* Fancy QR_Taler: encode bank UI URL (login with credentials above) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue