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. |
||
---|---|---|
.. | ||
__init__.py | ||
alert_words.py | ||
attachments.py | ||
auth.py | ||
compatibility.py | ||
custom_profile_fields.py | ||
email_mirror.py | ||
events_register.py | ||
home.py | ||
hotspots.py | ||
integrations.py | ||
invite.py | ||
messages.py | ||
muting.py | ||
pointer.py | ||
presence.py | ||
push_notifications.py | ||
reactions.py | ||
realm.py | ||
realm_domains.py | ||
realm_emoji.py | ||
realm_filters.py | ||
realm_icon.py | ||
registration.py | ||
report.py | ||
streams.py | ||
tutorial.py | ||
typing.py | ||
unsubscribe.py | ||
upload.py | ||
user_settings.py | ||
users.py | ||
zephyr.py |