Skip to content

Commit

Permalink
Dont mask if there's no auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed May 21, 2024
1 parent 8ef4ac5 commit ff0d0c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

5.1.1 (2024-05-21)
------------------

* Do not display an authentication mask for http protocols if there are no actual credentials specified.

5.1.0 (2024-04-12)
------------------

Expand Down
2 changes: 1 addition & 1 deletion src/holdup/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __repr__(self):

def display_definition(self, *, verbose_passwords):
url = self.parsed_url
if not verbose_passwords:
if url.username and not verbose_passwords:
if not url.password:
mask = "******"
else:
Expand Down

0 comments on commit ff0d0c8

Please sign in to comment.