Skip to content

Commit

Permalink
fix quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNikiforov committed Jun 29, 2024
1 parent 87b2b6a commit c83b227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/icloudpd/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def request_2sa(icloud: PyiCloudService, logger: logging.Logger) -> None:
device_index: int = 0
if devices_count > 0:
for i, device in enumerate(devices):
alt_name = f"SMS to {device.get("phoneNumber")}"
number = device["phoneNumber"]
alt_name = f"SMS to {number}"
name = device.get("deviceName", alt_name)
print(f" {i}: {name}")

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

This expression logs
sensitive data (private)
as clear text.

Expand Down

0 comments on commit c83b227

Please sign in to comment.