diff --git a/clients/urwid/network.py b/clients/urwid/network.py index 24bcd82..251d9d5 100644 --- a/clients/urwid/network.py +++ b/clients/urwid/network.py @@ -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")