Skip to content

D101 · A removed member comes back by a new invitation to their existing login

Proposed · 2026-11-16 · zuki, in the team session on #637, from #630; it binds when this page's pull request is merged · Applies to access (ACC) · Partly supersedes D98: an email that already has a login is no longer always refused · Partly superseded by D104: only a login with no membership in any organization can be invited

Decision: An admin brings a removed member back by inviting their email again. invite_member() refuses an email whose login already has a membership in the organization, as before, but accepts an email whose login has none there. For such a login apps/web's server-only invite module sends a sign-in link instead of Auth's invite, because Auth won't invite a login that exists. The link lasts 24 hours, like any invitation. When the member opens it, a new accept_invitation() function rechecks the invitation as D98 does and makes the membership and the role. The login keeps its password, so the member doesn't pass through /welcome. Removing a member stays a hard delete (#457).

Why: Removing a member deletes the membership but keeps the login. Under D98 the login then blocks every new invitation, and Auth won't send an invite to a confirmed login, so nobody could bring the member back. Inviting again reuses the checks D98 already makes, the inviter's authority and what they may grant, and keeps the activity log's history on one login. A soft remove with a restore would reopen M1-04's choice and its tests.

Consequences:

  • R-ACC-92 refuses an email whose login has a membership in the organization, not every email with a login. R-ACC-93 makes no new login for such an email, and R-ACC-189's "nothing brings the membership back" changes to say an invitation does.
  • New rules for accept_invitation() and the sign-in link, written and built in their own M1 slice, not in #637.
  • Acceptance makes a new membership, so the question of an existing membership's flag at acceptance doesn't arise here; where it does, acceptance combines the flags as old AND new (#625, R-ACC-155).