From 00ae506e641834593874812309c33ed825a17cb7 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 16 Apr 2014 20:01:23 +0200 Subject: [PATCH] Added missing elements for WDS66-based registration. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/libs/wernis_functions.php | 7 +++++-- templates/de/html/guest/guest_wernis_registration_form.tpl | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/inc/libs/wernis_functions.php b/inc/libs/wernis_functions.php index 1db29a77bb..ad801cc17d 100644 --- a/inc/libs/wernis_functions.php +++ b/inc/libs/wernis_functions.php @@ -543,8 +543,11 @@ function doWernisFinishUserRegistration ($challenge, $challengeResponse, $status $return['mapped_data'] = runFilterChain('register_must_fillout', $return['mapped_data']); // Add missing elements - $return['mapped_data']['gender'] = NULL; - $return['mapped_data']['birthday_selection'] = generateDayMonthYearSelectionBox($return['mapped_data']['birth_day'], $return['mapped_data']['birth_month'], $return['mapped_data']['birth_year']); + $return['mapped_data']['gender'] = NULL; + $return['mapped_data']['birthday_selection'] = generateDayMonthYearSelectionBox($return['mapped_data']['birth_day'], $return['mapped_data']['birth_month'], $return['mapped_data']['birth_year']); + $return['mapped_data']['status'] = bigintval(getRequestElement('status')); + $return['mapped_data']['challenge'] = getRequestElement('challenge'); + $return['mapped_data']['__challenge_response'] = getRequestElement('__challenge_response'); // Display form loadTemplate('guest_wernis_registration_form', FALSE, $return['mapped_data']); diff --git a/templates/de/html/guest/guest_wernis_registration_form.tpl b/templates/de/html/guest/guest_wernis_registration_form.tpl index 706fc083b3..096c5db681 100644 --- a/templates/de/html/guest/guest_wernis_registration_form.tpl +++ b/templates/de/html/guest/guest_wernis_registration_form.tpl @@ -1,5 +1,5 @@
-{%form,formMethodPost,formNameRegister=modules.php?module=index&what=register%} +{%form,formMethodPost,formNameRegister=modules.php?module=index&what=register&provider=wernis&status=$content[status]&challenge=$content[challenge]&__challenge_response=$content[__challenge_response]%} -- 2.39.2