Added missing elements for WDS66-based registration.
authorRoland Haeder <roland@mxchange.org>
Wed, 16 Apr 2014 18:01:23 +0000 (20:01 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 16 Apr 2014 18:01:23 +0000 (20:01 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/libs/wernis_functions.php
templates/de/html/guest/guest_wernis_registration_form.tpl

index 1db29a7..ad801cc 100644 (file)
@@ -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']);
index 706fc08..096c5db 100644 (file)
@@ -1,5 +1,5 @@
 <div align="center">
-{%form,formMethodPost,formNameRegister=modules.php?module=index&amp;what=register%}
+{%form,formMethodPost,formNameRegister=modules.php?module=index&amp;what=register&amp;provider=wernis&status=$content[status]&amp;challenge=$content[challenge]&amp;__challenge_response=$content[__challenge_response]%}
 <input type="hidden" name="registration_provider" value="register" />
 <table border="0" cellspacing="0" cellpadding="0" width="640" class="table dashed">
        <tr>