[mod] page:logic:waiting
This commit is contained in:
parent
ed0a40d951
commit
f1f92d4256
1 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue