[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;
} = await input.read();
let flaws : Array<{incident : string; details : Record<string, any>;}>;
set_state(
"wait",
[
]
);
if (value.password_value !== value.password_confirmation) {
flaws = [
{"incident": "password_mismatch", "details": {}},
];
}
else {
set_state(
"wait",
[
]
);
try {
flaws = await _espe.backend.member_register(
id,