Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

auth: Remove now unnecessary return_data parameter.

Tim Abbott7c7ca61e9f3b
diff --git a/zerver/views/auth.py b/zerver/views/auth.py
index ccbe79f5706..19d399599d6 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})