From 7c7ca61e9f3baf8620d1991e52eac5d361cac2be Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 2 Feb 2023 11:12:26 -0800 Subject: [PATCH] auth: Remove now unnecessary return_data parameter. --- zerver/views/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/views/auth.py b/zerver/views/auth.py index ccbe79f570..19d399599d 100644 --- a/zerver/views/auth.py +++ b/zerver/views/auth.py @@ -892,7 +892,7 @@ def start_two_factor_auth( def process_api_key_fetch_authenticate_result( - request: HttpRequest, user_profile: UserProfile, return_data: Dict[str, bool] + request: HttpRequest, user_profile: UserProfile ) -> str: assert user_profile.is_authenticated @@ -949,7 +949,7 @@ def api_fetch_api_key( assert isinstance(user_profile, UserProfile) - api_key = process_api_key_fetch_authenticate_result(request, user_profile, return_data) + api_key = process_api_key_fetch_authenticate_result(request, user_profile) return json_success(request, data={"api_key": api_key, "email": user_profile.delivery_email})