mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
3d7e8be9aa
An SSO login that matched no account by its subject took the account with the same email address and linked the provider identity to it. That address proves nothing when the account typed it in itself: anyone could sign up with, or switch their profile to, a colleague's address and receive the colleague's first SSO login. The provider switch branch (#2110) relinked a row on any email match without even asking for email_verified, and also for another subject of the same provider. users.email_self_asserted remembers an address the account set itself: signup (not the first account) and an email change in the profile settings set it, an admin entering a new address clears it, and accounts the provider creates start without it. Existing accounts keep linking, except those whose address moved away from the registered one without an admin editing it. A login by email now needs a verified address and an unmarked account, and is refused for another subject of the same issuer, with email_link_blocked and a translated message on the login screen. An email change in the profile settings writes a user.email_change audit row. Refs #2110
23 lines
974 B
JSON
23 lines
974 B
JSON
{
|
|
"scripts/db-call-graph.mjs": 1036,
|
|
"scripts/generate-entities.ts": 2259,
|
|
"src/db/repositories/Places.repository.ts": 1440,
|
|
"src/db/repositories/Reservations.repository.ts": 1675,
|
|
"src/db/repositories/Trips.repository.ts": 1121,
|
|
"src/db/repositories/Users.repository.ts": 1445,
|
|
"src/nest/atlas/atlas-geo.ts": 1005,
|
|
"src/nest/atlas/atlas.service.ts": 1182,
|
|
"src/nest/auth/auth.service.ts": 1143,
|
|
"src/nest/budget/budget.service.ts": 1668,
|
|
"src/nest/collections/collections.service.ts": 1483,
|
|
"src/nest/doc-sync/doc-sync.service.ts": 1060,
|
|
"src/nest/doc-sync/providers/synology-drive.client.ts": 1160,
|
|
"src/nest/journey/journey-domain.service.ts": 1799,
|
|
"src/nest/places/places.service.ts": 1598,
|
|
"src/nest/plugins/plugin-runtime.service.ts": 1463,
|
|
"src/nest/plugins/runtime/plugin-sdk.ts": 1093,
|
|
"src/nest/reservations/reservations.service.ts": 1239,
|
|
"src/nest/trips/trips.service.ts": 1009,
|
|
"src/nest/vacay/vacay.service.ts": 1420
|
|
}
|