Yulian Diaz and GitHub
f391dd0a5d
Fix: password signup crashes with JSON parse error when MAIL_URL is configured ( #10519 )
...
When signing up with a password on deployments with MAIL_URL set, the
account service returns token: undefined to enforce email confirmation.
SignupForm.svelte was calling logIn() unconditionally, which triggered
PUT /cookie without an Authorization header, returning a 401 with an
unparseable body and leaving the user stuck on the signup page.
- Guard logIn() in SignupForm.svelte with `result.token != null`, matching
the pattern already used in doLoginNavigate() in utils.ts
- Fix PUT /cookie 401 response to use Koa's ctx.status/ctx.body instead of
raw ctx.res.writeHead/end, so the error body is correctly serialized
- Add unit tests for the token guard logic
Fixes #10518
Signed-off-by: Yulian Diaz <5605867+spatialy@users.noreply.github.com >
2026-02-19 14:09:29 +07:00
..
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2026-01-21 11:41:44 +07:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2026-02-12 11:11:28 +07:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2026-01-29 13:44:14 +07:00
2026-02-04 16:51:02 +05:00
2026-02-18 21:26:13 +07:00
2026-02-12 20:46:54 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2026-02-12 11:14:30 +07:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-19 20:26:53 +05:00
2026-01-09 12:54:43 +07:00
2026-02-18 21:26:13 +07:00
2026-01-07 15:14:09 +05:00
2026-01-29 14:44:13 +07:00
2026-02-07 17:33:11 +05:00
2026-02-02 11:30:24 +07:00
2026-02-13 15:30:43 +05:00
2026-02-13 15:30:43 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:34:43 +05:00
2026-02-18 21:26:13 +07:00
2026-02-07 17:34:43 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2026-01-31 18:01:35 +07:00
2026-02-18 21:26:13 +07:00
2026-02-04 13:50:09 +07:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 22:22:43 +07:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-11-26 23:24:41 +05:00
2025-12-07 21:08:24 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2026-02-04 16:51:02 +05:00
2026-02-18 21:26:13 +07:00
2026-02-19 14:09:29 +07:00
2026-02-07 17:33:11 +05:00
2026-02-18 21:26:13 +07:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-02 13:29:50 +07:00
2026-02-18 21:26:13 +07:00
2026-02-02 17:15:20 +07:00
2026-02-16 16:08:14 +07:00
2026-02-18 21:26:13 +07:00
2026-02-16 16:08:14 +07:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 21:10:29 +05:00
2026-02-18 21:26:13 +07:00
2026-01-09 12:54:43 +07:00
2025-11-26 23:24:41 +05:00
2026-01-15 11:08:11 +07:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2026-01-23 11:20:06 +07:00
2026-02-07 17:33:11 +05:00
2026-02-12 11:13:04 +07:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2026-01-12 20:39:58 +07:00
2026-01-05 20:10:07 +05:00
2026-02-18 21:26:13 +07:00
2026-02-17 21:34:31 +07:00
2025-12-18 00:40:41 +05:00
2026-02-07 17:33:11 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-02-18 21:26:13 +07:00
2025-12-18 00:40:41 +05:00
2026-02-13 15:30:43 +05:00
2026-02-18 21:26:13 +07:00
2026-02-13 15:30:43 +05:00
2026-02-13 15:30:43 +05:00
2026-02-18 21:26:13 +07:00
2026-02-13 15:30:43 +05:00