Skip to content

Commit

Permalink
revert unintended breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
desvox committed Aug 18, 2024
1 parent a0319bc commit 5e61d89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clients/urwid/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ def set_credentials(self, user_name, user_auth, hash_auth=True, check_validity=T
hash_auth=False
)
"""
if hash_auth:
user_auth = self._hash(user_auth)

if check_validity and not self.validate_credentials(user_name, user_auth):
self.user_auth = self.user_name = None
raise ConnectionRefusedError("Auth and User do not match")
Expand Down

0 comments on commit 5e61d89

Please sign in to comment.