FIX: Make UI match server behavior for external-auth invites (PR #13113)

There are two methods which the server uses to verify an invite is being redeemed with a matching email:

  1. The email token, supplied via a ?t= parameter
  2. The validity of the email, as provided by the auth provider

Only one of these needs to be true for the invite to be redeemed successfully on the server. The frontend logic was previously only checking (2). This commit updates the frontend logic to match the server.

This commit does not affect the invite redemption logic. It only affects the ‘show’ endpoint, and the UI.

GitHub

Copy suggestion: “by the invitation”

Maybe use the existing user.email.authenticated two lines above, and add a new translation for just “the invitation” to avoid any inconsistency problems?

Rest looks good