Key Information

Register
Submit
The challenge is finished.

Challenge Overview

In this First2Finish challenge, we want to fix registration process over HTTPS.
Essentially, we can't register over https using the prod API. It seems to work fine in QA, but in production, a call to https://local.topcoder.com/wp-admin/admin-ajax.php?action=post_register will fail mysteriously (see screencast http://www.screencast.com/t/6k52AjokXHg ). We don't know if this is API side or what -- it seems like it could be either the API or the PHP middleware.
Currently registration is processed via PHP as middleware, see
/plugins/TcApi-hookup/includes/ajax_func.php#L3  and /tcs-responsive/js/register-login.js#L632

In order to fix this issue, we need your help to refactor it call end point so client side will call registration endpoint directly instead of via  post_register() PHP function. API doc is provided here . Updating current $.post() to call end point is accepted as long as it's https, and works.

We're open to the better and easier way to fix this critical issue (https)

Note :
- Please don't do any registrations to live API api.topcoder.com, and please ensure your local installation is pointed to qa.topcoder.com, see config.json

- Please be sure registration process works fine as existing, for bot normal registration or via social login
- Please be sure your new JS files (if any) , is registered to config/script-register.json for minification process
- Any endpoint response should be displayed in modal window as existing

Resources and Guidelines:
- Latest theme and plugin available on GitLab https://gitlab.com/topcoderinc/tc-site/tree/master.
- Data is available on https://github.com/topcoderinc/tc-site-data 
- Please follow the guideline in our GitLab repo 

Quick Installation guide :
1. Activate theme and plugin
2. Import provided XML file
3. Set home as front page
4. Set permalink to %post_name%
5. Please install site on local.topcoder.com (add to hosts file), so your local site can read tcsso and tcjwt cookie



Final Submission Guidelines

- Please only submit Patch file (.patch) since we're working using git

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30046894