zulip/zerver/views
Rishi Gupta dbe3576706 registration: Enforce realm is None only if realm_creation.
Commit d4ee3023 and its parent have the history behind this code.

Since d4ee3023^, all new PreregistrationUser objects, except those for
realm creation, have a non-None `realm`.  Since d4ee3023, any legacy
PreregistrationUsers, with a `realm` of None despite not being for
realm creation, are treated as expired.  Now, we ignore them
completely, and remove any that exist from the database.

The user-visible effect is to change the error message for
registration (or invitation) links created before d4ee3023^ to be
"link does not exist", rather than "link expired".

This change will at most affect users upgrading straight from 1.7 or
earlier to 1.8 (rather than from 1.7.1), but I think that's not much
of a concern (such installations are probably long-running
installations, without many live registration or invitation links).

[greg: tweaked commit message]
2017-12-11 18:36:14 -08:00
..
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
attachments.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
auth.py auth: Try switching to register even if user exists on another realm. 2017-11-28 16:38:41 -08:00
compatibility.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
custom_profile_fields.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
email_log.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
email_mirror.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
events_register.py Support client_gravatar field for event registration. 2017-11-07 10:42:17 -08:00
home.py settings: Send bot types from the backend instead of hardcoding them. 2017-11-30 15:28:53 -08:00
hotspots.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
integrations.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
invite.py invitations: Change error messages for resend/revoke views. 2017-12-06 20:35:50 -08:00
messages.py mypy: Use Python 3 type syntax in zerver/views/messages.py. 2017-12-03 13:48:18 -08:00
muting.py decorator: Cut a bunch of dead imports of two view decorators. 2017-11-04 19:27:00 -07:00
pointer.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
presence.py decorator: Cut a bunch of dead imports of two view decorators. 2017-11-04 19:27:00 -07:00
push_notifications.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
reactions.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
realm.py mypy: User Python 3 syntax for typing in realm.py. 2017-12-08 18:34:26 -08:00
realm_domains.py zerver/views: Text-wrap long lines exceeding 110. 2017-11-07 17:24:09 -08:00
realm_emoji.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
realm_filters.py mypy: Use Python 3 type syntax in zerver/views/realm_filters.py. 2017-12-09 16:50:12 -08:00
realm_icon.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
registration.py registration: Enforce realm is None only if realm_creation. 2017-12-11 18:36:14 -08:00
report.py queue processor tests: Call consume by default. 2017-11-26 11:45:34 -08:00
storage.py embedded bots: Consistently use 'storage' instead of 'state.' 2017-11-27 21:05:34 -08:00
streams.py Text-wrap the remaining long lines exceeding 110. 2017-11-15 10:58:03 -08:00
tutorial.py mypy: Use Python 3 syntax for typing in views/tutorial.py. 2017-12-08 18:34:26 -08:00
typing.py decorator: Cut a bunch of dead imports of two view decorators. 2017-11-04 19:27:00 -07:00
unsubscribe.py unsubscribe: Use a custom confirmation error page. 2017-11-07 16:02:49 -08:00
upload.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
user_groups.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
user_settings.py notification settings: Add stream email notifications setting. 2017-11-28 17:51:18 -08:00
users.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
zephyr.py zephyr: Update path to process_cache for repository split. 2017-10-05 12:35:20 -07:00