Commit 14a91a3
committed
Fix: Replace z.httpUrl() with z.url() constrained to http/https for localhost compatibility
z.httpUrl() rejects localhost URLs, causing Zod validation errors
during local development when verifying email. z.url() with a protocol
constraint still restricts to http/https while accepting localhost.
Existing isExternalOrigin checks already handle redirect security.
Closes #2411 parent d83c4d0 commit 14a91a3
File tree
2 files changed
+2
-2
lines changed- src
- app/api/auth/confirm
- server/api/models
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments