mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
zulip_login_required: Set request._query.
This fixes an exception we had in the user_activity queue processor when changing email addresses, since the URL containing the confirmation key was longer than 50 characters.
This commit is contained in:
parent
cf6545a71f
commit
6c4c8178f0
@ -305,6 +305,7 @@ def add_logging_data(view_func):
|
||||
def _wrapped_view_func(request, *args, **kwargs):
|
||||
# type: (HttpRequest, *Any, **Any) -> HttpResponse
|
||||
request._email = request.user.email
|
||||
request._query = view_func.__name__
|
||||
process_client(request, request.user, is_json_view=True)
|
||||
return view_func(request, *args, **kwargs)
|
||||
return _wrapped_view_func # type: ignore # https://github.com/python/mypy/issues/1927
|
||||
|
||||
Loading…
Reference in New Issue
Block a user