decorator: Add logging data to zulip_login_required.

This fixes an issue that many logged=in pages such as /stats did not
correctly report either the connecting client or the user in server
logs.
This commit is contained in:
Tim Abbott
2017-02-20 11:55:18 -08:00
parent d4206f2f5f
commit 20f9c04ab5
4 changed files with 15 additions and 10 deletions

View File

@@ -107,9 +107,6 @@ def home_real(request):
request.session.modified = True
user_profile = request.user
request._email = request.user.email
# Process the client as an auth decorator would
process_client(request, user_profile, is_json_view=True)
# If a user hasn't signed the current Terms of Service, send them there
if settings.TERMS_OF_SERVICE is not None and settings.TOS_VERSION is not None and \