Ratish jain
979047d004
fix: allow email change verification on self-hosted instances (#20123)
fixes #20117
## Technical Details
Flow after fix:
1. User submits email change request
2. user.service.ts:517-524 calls sendVerificationEmail() with
verificationTrigger: EMAIL_UPDATE
3. Guard checks: verificationTrigger === SIGN_UP → false → guard skipped
4. Verification token generated, email rendered and sent via
emailService.send()
5. User receives confirmation email at new address
6. User clicks confirmation link → email update completes
---
Impact
- Minimal change: Only 3 lines modified in a single file
- No breaking changes: Sign-up verification behavior unchanged
- Security preserved: Email changes always require verification (correct
security behavior)
- Self-hosted friendly: Instance admins can disable sign-up verification
while keeping email change verification active
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2026-06-04 18:56:15 +00:00
..
2026-02-11 10:05:24 +00:00
2025-06-16 10:04:38 +00:00
2026-02-11 10:05:24 +00:00
2025-07-24 17:04:38 +02:00
2025-12-18 17:08:55 +01:00
2025-05-28 10:22:28 +00:00
2025-10-15 17:41:14 +05:30
2026-03-16 09:57:18 +01:00
2026-03-16 09:57:18 +01:00
2026-05-13 10:53:45 +00:00
2025-10-30 10:14:56 +00:00
2025-05-23 13:36:02 +00:00
2025-03-26 15:08:48 +01:00
2026-02-11 10:05:24 +00:00
2026-02-11 10:05:24 +00:00
2026-03-16 09:57:18 +01:00
2026-03-16 09:57:18 +01:00
2025-10-30 10:14:56 +00:00
2025-05-23 13:36:02 +00:00
2026-03-16 09:57:18 +01:00
2026-03-16 09:57:18 +01:00
2025-10-08 16:23:37 +02:00
2026-04-30 09:32:04 +00:00
2025-09-17 10:32:47 +02:00
2025-05-28 10:22:28 +00:00
2025-10-15 17:41:14 +05:30
2026-03-16 09:57:18 +01:00
2026-03-16 09:57:18 +01:00
2026-03-16 09:57:18 +01:00
2026-06-01 14:16:02 +02:00
2026-05-13 10:53:45 +00:00
2026-02-11 10:05:24 +00:00
2026-05-04 19:42:12 +00:00
2025-10-27 09:44:41 +01:00
2025-11-18 17:25:33 +01:00
2025-08-08 01:27:05 +02:00
2025-08-08 01:27:05 +02:00
2025-08-08 01:27:05 +02:00
2025-11-10 16:13:12 +01:00
2025-09-08 17:50:26 +02:00
2026-05-13 10:53:45 +00:00
2026-05-13 10:53:45 +00:00
2025-03-22 19:16:06 +01:00
2025-05-23 13:36:02 +00:00
2025-08-08 01:27:05 +02:00
2025-11-10 16:13:12 +01:00
2026-02-28 14:07:49 +01:00
2026-06-04 18:56:15 +00:00
2025-11-10 16:13:12 +01:00
2026-02-28 14:07:49 +01:00
2026-03-04 16:33:58 +01:00
2025-10-30 10:14:56 +00:00
2025-10-30 10:14:56 +00:00
2026-03-16 09:57:18 +01:00
2026-03-16 09:57:18 +01:00
2026-02-11 10:05:24 +00:00
2026-02-05 16:42:19 +00:00
2026-05-26 09:23:48 +00:00
2026-03-27 14:47:27 +01:00
2025-08-04 11:43:48 +02:00
2026-04-20 14:31:06 +02:00
2026-03-16 09:57:18 +01:00