From 40488681327a8ba9b92c111a50159b03a8a43ace Mon Sep 17 00:00:00 2001 From: snaky69 <108159253+ic-dev21@users.noreply.github.com> Date: Sun, 10 Dec 2023 10:59:41 -0500 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20caract=C3=A8res=20sp=C3=A9ciaux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dans les caractères parsé par urllib, ça va éviter des auth_errors pour les gens qui ont des caractères spéciaux dans le mot de passe. --- pyhilo/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhilo/api.py b/pyhilo/api.py index b19ae12..fb33cf3 100644 --- a/pyhilo/api.py +++ b/pyhilo/api.py @@ -165,7 +165,7 @@ async def async_auth_password( api._username = username api._state_yaml = state_yaml api.state = get_state(state_yaml) - password = parse.quote(password, safe="!@#$%^&*()+") + password = parse.quote(password, safe="!@#$%^?&*()_+") auth_body = api.auth_body( AUTH_TYPE_PASSWORD, username=username, password=password )