Commit b19881c
Feat | Migrate from Google reCAPTCHA to Cloudflare Turnstile (#121)
* feat: Migrate from Google reCAPTCHA to Cloudflare Turnstile
* chore: Change to vendor recommended implementation
* feat: Update login attempts retrieval to use user data if available
* chore: Add PR's requested changes and Unit tests
- Validation failure when cf-turnstile-response is missing
- Login flow behaviour before/after CAPTCHA threshold
- Rendering of Turnstile on the thresholded login screen
- Auth form submission when Turnstile is expired or not solved
* chore: upgrade to Node 22.22.2 and fix yarn build (#131)
- Bump NODE_VERSION 20.20.2 → 22.22.2 in Dockerfile and .nvmrc
- Replace node-sass@8 (EOL, no Node 22 binary) with sass@^1.77 (dart-sass)
- Bump webpack@^5.94, webpack-cli@^5.1.4 (resolves OpenSSL-3 legacy hash issue)
- Bump copy-webpack-plugin@^11 for webpack 5.94+ compatibility
- Add util:false to webpack.common.js resolve.fallback (webpack 5.106 is
stricter than 5.70 about unresolved Node built-ins; jsdom/tough-cookie
transitively require util which should not be browser-polyfilled)
- Drop unused devDeps: clean-webpack-plugin, html-webpack-plugin,
optimize-css-assets-webpack-plugin, path polyfill, webpack-node-externals
- Regenerate yarn.lock
* chore: Add PR's requested changes
* chore: Add PR's requested changes
* chore: Fix composer.lock update issue
* feat: Add remote IP address to Turnstile verification request
* fix: add timeout and scope retry to connection errors in TurnstileClient
- Add ->timeout(5) to bound max wall time to ~15s during Cloudflare outages
- Restrict retry to ConnectionException only so success:false responses
(valid HTTP 200) do not trigger wasteful retries
---------
Co-authored-by: sebastian marcet <smarcet@gmail.com>1 parent a59a4bb commit b19881c
48 files changed
Lines changed: 3260 additions & 5127 deletions
File tree
- .github/workflows
- app
- Http/Controllers
- Auth
- Providers
- Services
- config
- public/assets/js/auth
- resources
- js
- email_verification
- forgot_password
- login
- reset_password
- set_password
- signup
- views/auth
- passwords
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | | - | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
180 | | - | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
0 commit comments