FIX: Handle staged users as unregistered users for external auth (PR #12567)

For ‘local logins’, the UX for staged users is designed to be identical to unregistered users. However, staged users logging in via external auth were being automatically unstaged, and skipping the registration/invite flow. In the past this made sense because the registration/invite flows didn’t work perfectly with external auth. Now, both registration and invites work well with external auth, so it’s best to leave the ‘unstage’ logic to those endpoints.

This problem was particularly noticeable when using the ‘bulk invite’ feature to invite users with pre-configured User Fields. In that situation, staged user accounts are used to preserve the user field data.


Looks good to me! :+1: