iftechfoundation / ifdb-suggestion-tracker

Bugs and feature requests for a future IFDB update
10 stars 0 forks source link

"Click to reveal" email captcha on user page not working #431

Closed salty-horse closed 6 months ago

salty-horse commented 6 months ago

User pages with emails have a "click to reveal" link which should open a captcha. Example: https://ifdb.org/showuser?id=sewum1c69z4rchuz

Clicking the link does nothing.

From what I gather, it's because the captcha has the class hidden which defines display: none !important;. When the click script tries to set display to block, the more-important CSS definition overrides it.

The inline style was removed as part of the security fixes here: https://github.com/iftechfoundation/ifdb/commit/52213b2f088e3d7e17438d3f750f3f38b7870a44 And the CSS definition for hidden was added for a different feature: https://github.com/iftechfoundation/ifdb/commit/ef02d3d4c370752098aeae289868982f278c7a14

Maybe the easiest solution would be to have a hidden_captcha style that's not !important.