Browse Source
The function is reachable from the unauthenticated webauthn_login grant in addition to the existing authenticated 2FA-management callers. Two failure modes safe for authenticated callers are not safe under an unauthenticated grant: - Organization::find_by_uuid().unwrap() panics the worker if the org was concurrently deleted. Match Some/None and skip the notification for that iteration; the revoke is still applied. - A propagated SMTP error from send_2fa_removed_from_org aborted the loop after earlier members were already revoked + emailed, leaving the caller half-enforced. Log and continue; OrganizationUserRevoked audit entries cover recovery for any missed notifications. member.save() retains `?` because the revoke is the security boundary and must fail closed.pull/7297/head
2 changed files with 44 additions and 7 deletions
Loading…
Reference in new issue