bank landing: show auto-account created datetime

API returns created; landing displays it once.
This commit is contained in:
Hernâni Marques 2026-07-10 16:46:00 +02:00
parent 403d0f40b0
commit eacf4f91c8
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -844,6 +844,7 @@
<div><dt>Name</dt><dd><code id="auto-account-name"></code></dd></div> <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>
<div><dt>Created</dt><dd><code id="auto-account-created"></code></dd></div>
</dl> </dl>
<p class="meta" id="auto-account-status" style="margin:0.5rem 0 0"></p> <p class="meta" id="auto-account-status" style="margin:0.5rem 0 0"></p>
<div class="more-qr" id="auto-account-qr-block" style="margin-top:0.85rem" hidden> <div class="more-qr" id="auto-account-qr-block" style="margin-top:0.85rem" hidden>
@ -1225,6 +1226,11 @@
if (n) n.textContent = d.name || d.display_name || "—"; if (n) n.textContent = d.name || d.display_name || "—";
if (u) u.textContent = d.username || "—"; if (u) u.textContent = d.username || "—";
if (p) p.textContent = d.password || "—"; if (p) p.textContent = d.password || "—";
var cEl = document.getElementById("auto-account-created");
if (cEl) {
cEl.textContent =
d.created_human || d.created || "—";
}
if (st) { if (st) {
st.textContent = st.textContent =
"Account created for you · " + "Account created for you · " +

View file

@ -216,10 +216,10 @@ def create_personal_account() -> dict:
"hint": ( "hint": (
"This bank account was created for you automatically " "This bank account was created for you automatically "
f"(funny name: {name}). " f"(funny name: {name}). "
"Copy username and password now — we do not store them for later recovery. " "Copy username and password now — we do not store them for later recovery."
"Balance starts at GOA:0."
), ),
"created": time.strftime("%Y-%m-%dT%H:%MZ", time.gmtime()), "created": time.strftime("%Y-%m-%dT%H:%MZ", time.gmtime()),
"created_human": time.strftime("%Y-%m-%d %H:%M %Z", time.localtime()),
} }