Commit 51639e3
authored
fix(auth): block OAuth linking for unverified accounts (calcom#26598)
* fix(auth): sanitize unverified accounts during OAuth linking
- Add AccountSanitizationService for secure account cleanup
- Clear webhooks, API keys, credentials, and sessions for unverified accounts
- Reset password and 2FA settings during OAuth conversion
- Nullify redirect URLs on event types
Only affects accounts that never completed email verification
* fix(auth): block OAuth linking for unverified accounts
Replace sanitization with simpler blocking approach:
- Unverified CAL accounts cannot link to OAuth (Google/SAML)
- Add user-friendly error message with recovery path
- Remove AccountSanitizationService (no data loss risk)1 parent c380ea8 commit 51639e3
3 files changed
Lines changed: 8 additions & 1 deletion
File tree
- apps/web
- app/(use-page-wrapper)/auth/error
- public/static/locales/en
- packages/features/auth/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4186 | 4186 | | |
4187 | 4187 | | |
4188 | 4188 | | |
| 4189 | + | |
4189 | 4190 | | |
4190 | 4191 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1078 | 1083 | | |
1079 | 1084 | | |
1080 | 1085 | | |
| |||
1086 | 1091 | | |
1087 | 1092 | | |
1088 | 1093 | | |
1089 | | - | |
1090 | 1094 | | |
1091 | 1095 | | |
1092 | 1096 | | |
| |||
0 commit comments