mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
ref BAE-397 Moved the hCaptcha component outside of the page level, since it was complicating the logic within the pages with no good reason. The hCaptcha component is now attached to the pop-up modal. Since it's invisible, this doesn't impact layout anyway, but means that any action can trigger Captcha to run, and use the result within that same action. This simplifies the flow by having the action itself confirm that Captcha is enabled, then grabbing the token by running either a challenge (for self-hosters) or using their enterprise heuristics system (for Ghost Pro). This also fixes issues where sites with multiple tiers wouldn't work with Captcha, since the page had changed and the hCaptcha component was unloaded. |
||
---|---|---|
.. | ||
components | ||
images | ||
tests | ||
utils | ||
actions.js | ||
App.css | ||
App.js | ||
App.test.js | ||
AppContext.js | ||
data-attributes.js | ||
index.css | ||
index.js | ||
logo.svg | ||
pages.js | ||
setupTests.js |