jhu-redcap / IP-ENCRYPT

MIT License
0 stars 0 forks source link

Decrypt Feature requires CSRF token #1

Open dr01d3r opened 2 months ago

dr01d3r commented 2 months ago

When attempting to decrypt in the Control Center, the module crashes due to the absence of the redcap_csrf_token. The following adjustments to the $.ajax call have been tested to work.

data: `decrypttxt=${iptext}&redcap_csrf_token=<?=$module->getCSRFToken()?>`,
contentType: 'application/x-www-form-urlencoded',
devilsphere commented 2 months ago

Thank you very much, the change has been applied and a new version should be out soon.