Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
auth: Add an assertion check for context_data.
Zixuan James Li7233ad454f8b
diff --git a/zerver/views/auth.py b/zerver/views/auth.pyindex 041e4a1a72a..61921c2e546 100644--- a/zerver/views/auth.py+++ b/zerver/views/auth.py@@ -816,6 +816,7 @@ def login_page(# added in SimpleTemplateResponse class, which is a derived class of# HttpResponse. See django.template.response.SimpleTemplateResponse,# https://github.com/django/django/blob/2.0/django/template/response.py#L19+ assert template_response.context_data is not Noneupdate_login_page_context(request, template_response.context_data)assert isinstance(template_response, HttpResponse)