HomePhabricator

Allow users to register with non-registration providers if they are invited to…

Description

Allow users to register with non-registration providers if they are invited to an instance

Summary:
Depends on D20117. Fixes T10071. When you're sent an email invitation, it's intended to allow you to register an account even if you otherwise could not (see D11737).

Some time between D11737 and today, this stopped working (or perhaps it never worked and I got things wrong in D11737). I think this actually ended up not mattering for us, given the way Phacility auth was ultimately built.

This feature generally seems reasonable, though, and probably should work. Make it work in the "password" and "oauth" cases, at least. This may still not work for LDAP, but testing that is nontrivial.

Test Plan:

  • Enabled only passwords, turned off registration, sent an invite, registered with a password.
  • Enabled only Google OAuth, turned off registration, sent an invite, registered with Google OAuth.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T10071

Differential Revision: https://secure.phabricator.com/D20118