To combat scripted looting of Cashtab's Free XEC rewards (and support high rewards in the future), implement recaptcha v3 on the rewards.
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABCc066dfc6c255: [token-server + cashtab] Implement captchas for free XEC rewards
npm test
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- cashtab-xec-captchas
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 30489 Build 60495: Build Diff ecash-lib-tests · cashtab-tests · token-server-tests Build 60494: arc lint + arc unit
Event Timeline
Failed tests logs:
====== CashTab Unit Tests: <Home /> Renders backup warning, Airdrop button, and QR Code if user loads with a new wallet that is the only created wallet ======
Error: expect(received).toHaveProperty(path, value)
Expected path: "disabled"
Expected value: true
Received value: false
at Object.toHaveProperty (/work/cashtab/src/components/Home/__tests__/Home.test.js:275:31)Each failure log is accessible here:
CashTab Unit Tests: <Home /> Renders backup warning, Airdrop button, and QR Code if user loads with a new wallet that is the only created wallet
Failed tests logs:
====== CashTab Unit Tests: <Home /> Renders backup warning, Airdrop button, and QR Code if user loads with a new wallet that is the only created wallet ======
Error: expect(received).toHaveProperty(path, value)
Expected path: "disabled"
Expected value: true
Received value: false
at Object.toHaveProperty (/work/cashtab/src/components/Home/__tests__/Home.test.js:275:31)Each failure log is accessible here:
CashTab Unit Tests: <Home /> Renders backup warning, Airdrop button, and QR Code if user loads with a new wallet that is the only created wallet
Failed tests logs:
====== CashTab Unit Tests: <Home /> Renders backup warning, Airdrop button, and QR Code if user loads with a new wallet that is the only created wallet ======
Error: expect(received).toHaveProperty(path, value)
Expected path: "disabled"
Expected value: true
Received value: false
at Object.toHaveProperty (/work/cashtab/src/components/Home/__tests__/Home.test.js:275:31)Each failure log is accessible here:
CashTab Unit Tests: <Home /> Renders backup warning, Airdrop button, and QR Code if user loads with a new wallet that is the only created wallet
| cashtab/.env | ||
|---|---|---|
| 2 ↗ | (On Diff #49938) | this is a "dev" key. It's real, and will work on localhost I've configured prod values in our CI deployment that are only valid on the cashtab.com domain |
| cashtab/src/components/Home/Home.js | ||
| 156 ↗ | (On Diff #49938) | in the recaptcha dashboard, we can look at stats by action. So, if we later decide to recaptcha the token rewards, they can be tracked separately. |