[mod] page:logic:waiting

This commit is contained in:
roydfalk 2024-05-20 14:07:25 +02:00
parent ed0a40d951
commit f1f92d4256

View file

@ -151,17 +151,17 @@ lib_plankton.zoo_page.register(
password_confirmation : string; password_confirmation : string;
} = await input.read(); } = await input.read();
let flaws : Array<{incident : string; details : Record<string, any>;}>; let flaws : Array<{incident : string; details : Record<string, any>;}>;
set_state(
"wait",
[
]
);
if (value.password_value !== value.password_confirmation) { if (value.password_value !== value.password_confirmation) {
flaws = [ flaws = [
{"incident": "password_mismatch", "details": {}}, {"incident": "password_mismatch", "details": {}},
]; ];
} }
else { else {
set_state(
"wait",
[
]
);
try { try {
flaws = await _espe.backend.member_register( flaws = await _espe.backend.member_register(
id, id,