auth: Remove now unnecessary return_data parameter.

This commit is contained in:
Tim Abbott 2023-02-02 11:12:26 -08:00
parent 75b44337a8
commit 7c7ca61e9f
1 changed files with 2 additions and 2 deletions

View File

@ -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})