mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 21:11:14 +00:00
1fdf74e7f2
Both backfills of email_self_asserted skip any account with an admin.user_update row naming email. The edit dialog sends the email on every save, so a role change made long after an account moved its own address kept it at 0, and a verified SSO sign-in with that address still linked into it. A new migration reads the address each admin save found (targetUser): an account is marked when every save already found its current address, or when the last save that found another one sent no email. A save that may have typed the current address in still leaves the account alone, since the audit rows cannot tell it from a change the account made itself before 5.0.0. Only rows still at 0 are touched and nothing is cleared.