mirror of https://github.com/zulip/zulip.git
326f9a8506
If a user is trying to register for a mit zephyr mirroring realm, we send them a specific registration email with a link to a few more instructions. There is only one server that we know about that has such a realm, and that server uses subdomains. This commit changes the logic to work in the subdomains case, rather than in the non-subdomains case (though see next para). Note that the current check is deceptive, and is not actually correct in the non-subdomains case. The prereg user has a realm only in the atypical case of someone registering via the special URL for completely-open realms. To do this correctly in the non-subdomains case, we would need to copy a bunch of the logic from the beginning of accounts_register to figure out which realm the user is signing up for, so that we can check if that realm is a zephyr mirroring realm. Given how complicated the registration code is already, I think it is probably not worth it at the moment. This commit also removes the partial (deceptive) check, since I think it does more harm than good. |
||
---|---|---|
.. | ||
fixtures | ||
lib | ||
management | ||
migrations | ||
outgoing_webhooks | ||
templatetags | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
exceptions.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py | ||
static_header.txt | ||
storage.py |