zulip/zerver/views
Tim Abbott c88163eea8 auth: Make "Continue to registration" actually register you.
The main change here is to send a proper confirmation link to the
frontend in the `confirm_continue_registration` code path even if the
user didn't request signup, so that we don't need to re-authenticate
the user's control over their email address in that flow.

This also lets us delete some now-unnecessary code: The
`invalid_email` case is now handled by HomepageForm.is_valid(), which
has nice error handling, so we no longer need logic in the context
computation or template for `confirm_continue_registration` for the
corner case where the user somehow has an invalid email address
authenticated.

We split one GitHub auth backend test to now cover both corner cases
(invalid email for realm, and valid email for realm), and rewrite the
Google auth test for this code path as well.

Fixes #5895.
2018-04-22 19:55:05 -07:00
..
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py mypy: Use Python 3 type syntax in zerver/views/alert_words.py. 2017-12-28 07:26:44 -05:00
attachments.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
auth.py auth: Make "Continue to registration" actually register you. 2018-04-22 19:55:05 -07:00
compatibility.py parse_user_agent: Assert user agent is not None. 2018-03-22 14:29:29 -07:00
custom_profile_fields.py profile: Add hint attribute to custom profile fields. 2018-04-19 11:32:35 -07:00
email_log.py invitations: Remove custom_body. 2017-12-11 19:23:54 -08:00
email_mirror.py mypy: Use Python 3 type syntax in zerver/views/email_mirror.py. 2017-12-28 07:26:44 -05:00
events_register.py mypy: Use Python 3 type syntax in zerver/views. 2017-12-30 07:34:05 -05:00
home.py settings: Add option to control Jitsi video chat integration. 2018-04-02 16:55:16 -07: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 help: Clean up settings_html and subscriptions_html. 2018-04-05 14:48:26 -07:00
invite.py i18n: Fix use of 'realm administrator' in translated strings. 2018-03-07 17:15:29 -08:00
messages.py messages: Improve comment on need_messages. 2018-04-06 08:57:46 -07:00
muting.py mypy: Use Python 3 type syntax in zerver/views. 2017-12-30 07:34:05 -05:00
pointer.py mypy: Use Python 3 type syntax in views/pointer.py. 2017-12-26 08:29:30 -05:00
presence.py mypy: Use Python 3 type syntax in zerver/views. 2017-12-30 07:34:05 -05:00
push_notifications.py mypy: Use Python 3 type syntax in zerver/views/push_notifications.py. 2017-12-28 07:26:44 -05:00
reactions.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
realm.py org settings: Add realm level default time format setting. 2018-03-31 16:23:26 -07:00
realm_domains.py zerver/views: Text-wrap long lines exceeding 110. 2017-11-07 17:24:09 -08:00
realm_emoji.py emoji: Migrate realm emoji to be addressed by `id` rather than `name`. 2018-03-20 22:24:44 -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: Catch email validation error and show error message. 2018-04-06 15:18:32 -07:00
report.py csp_reports: Add endpoint to handle logging of reports sent by clients. 2018-04-11 23:01:13 +05:30
storage.py mypy: Migrate views/storage.py to python3.5 type annotations. 2018-03-12 11:23:30 -07:00
streams.py stream settings: Allow realm admins to remove others from any stream. 2018-03-13 14:59:09 -07:00
tutorial.py mypy: Use Python 3 syntax for typing in views/tutorial.py. 2017-12-08 18:34:26 -08:00
typing.py mypy: Use Python 3 type syntax in zerver/views/typing.py. 2017-12-18 11:32:52 -05:00
unsubscribe.py unsubscribe: Use a custom confirmation error page. 2017-11-07 16:02:49 -08:00
upload.py uploads: Make django-sendfile to force downloading attachments. 2018-03-14 11:22:10 -07:00
user_groups.py user-groups: Add backend enforcing for new modification settings. 2018-03-23 14:44:47 -07:00
user_settings.py settings: Add setting to disable message content in missed message emails. 2018-03-09 21:16:02 -08:00
users.py bots: Clean up editing bots impacting non-bot users. 2018-04-02 18:58:26 -07:00
zephyr.py mypy: Use Python 3 type syntax in zerver/views. 2017-12-30 07:34:05 -05:00