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>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>Created</dt><dd><code id="auto-account-created"></code></dd></div>
</dl>
<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>
@ -1225,6 +1226,11 @@
if (n) n.textContent = d.name || d.display_name || "—";
if (u) u.textContent = d.username || "—";
if (p) p.textContent = d.password || "—";
var cEl = document.getElementById("auto-account-created");
if (cEl) {
cEl.textContent =
d.created_human || d.created || "—";
}
if (st) {
st.textContent =
"Account created for you · " +

View file

@ -217,9 +217,9 @@ def create_personal_account() -> dict:
"This bank account was created for you automatically "
f"(funny name: {name}). "
"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_human": time.strftime("%Y-%m-%d %H:%M %Z", time.localtime()),
}