Posted body empty



  • So I have a weird bug that I'm struggling with. In the registration flow I have GDPR consent activated. When the first step is done, I tick both boxes and proceed. I then get the message that I have not ticked the checkboxes (which I have).

    I checked around the request object and the post body is empty. All data from the previous step is in the session object. I have a dev environment and it works there and the live environment. but not my local machine.

    I have been trying to trace the code, but no luck. The content gets posted, but nothing arrives in authenticationController.registerComplete (req.body).

    Tried in both Chrome and Firefox.

    This is what is put in the headers (Firefox):

    -----------------------------20020895991986255501110031412
    Content-Disposition: form-data; name="gdpr_agree_data"
    
    on
    -----------------------------20020895991986255501110031412
    Content-Disposition: form-data; name="gdpr_agree_email"
    
    on
    -----------------------------20020895991986255501110031412--
    

    Not sure if it's related, but the csrf-token is not the same as in the first registration form.

    Where the interstitials are added src/user/index.js row 335. The data arriving in the callback is userData: {} and formData, which is populated with data from the first step (username etc.).



  • The content I posted is just what it looked like in Firefox, Chrome parses it just fine.



  • When I remove enctype="multipart/form-data" from the form in registerComplete.tpl it works. So this has to do with encryption and maybe that I don't have HTTPS on my local machine. So then my question is, why is this not on the form that transmits the username and password?


Log in to reply
 

Suggested Topics

| |