This commit is contained in:
roydfalk 2024-05-27 21:27:09 +02:00
parent bc59ff46db
commit 23ca09a8f3
3 changed files with 17 additions and 9 deletions

View file

@ -348,7 +348,8 @@ namespace _espe.backend
email_use_nominal_address : boolean; email_use_nominal_address : boolean;
email_redirect_to_private_address : boolean; email_redirect_to_private_address : boolean;
password : (null | string); password : (null | string);
} },
notification_target_url_template : string
) : Promise< ) : Promise<
Array< Array<
{ {
@ -369,7 +370,10 @@ namespace _espe.backend
} }
), ),
{ {
"data": data, "data": Object.assign(
data,
{"notification_target_url_template": notification_target_url_template}
),
"custom_response_handlers": { "custom_response_handlers": {
409: (output_data_raw) => output_data_raw, 409: (output_data_raw) => output_data_raw,
}, },

View file

@ -186,7 +186,15 @@ lib_plankton.zoo_page.register(
"email_use_nominal_address": (value.email_address === "both"), "email_use_nominal_address": (value.email_address === "both"),
"email_redirect_to_private_address": value.email_redirect, "email_redirect_to_private_address": value.email_redirect,
"password": value.password_value, "password": value.password_value,
} },
lib_plankton.zoo_page.encode(
{
"name": "view",
"parameters": {
"id": "{{id}}",
}
}
)
); );
} }
catch (error) { catch (error) {

View file

@ -144,9 +144,8 @@ lib_plankton.zoo_page.register(
{ {
"label": lib_plankton.translate.get("page.view.form.action.summon"), "label": lib_plankton.translate.get("page.view.form.action.summon"),
"procedure": async (get_value, get_representation) => { "procedure": async (get_value, get_representation) => {
const url_template : string = ( const url : string = await _espe.backend.member_summon(
window.location.href.split("#")[0] id,
+
lib_plankton.zoo_page.encode( lib_plankton.zoo_page.encode(
{ {
"name": "register", "name": "register",
@ -157,9 +156,6 @@ lib_plankton.zoo_page.register(
} }
) )
); );
const url : string = await _espe.backend.member_summon(id, url_template);
if (_espe.conf.get().settings.test_mode) { if (_espe.conf.get().settings.test_mode) {
alert(lib_plankton.translate.get("page.view.misc.test_info", {"url": url})); alert(lib_plankton.translate.get("page.view.misc.test_info", {"url": url}));
} }