From ae2735b011bbcf47884d3dbe302f427194535625 Mon Sep 17 00:00:00 2001 From: Chirag Lamsal Date: Sun, 14 Jul 2024 23:41:35 +0545 Subject: [PATCH] fix: check password bugfix (#34) * fix: use new authcode parsing function * chore: release 1.0.67 --- league_client/password.py | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/league_client/password.py b/league_client/password.py index 1841582..1fc348a 100644 --- a/league_client/password.py +++ b/league_client/password.py @@ -7,6 +7,7 @@ from .rso import HEADERS from .rso import ClientSession from .rso import get_basic_auth +from .rso_auth import parse_auth_code from .rso_auth import parsing_auth_code from .rso_auth import rso_authorize @@ -238,10 +239,9 @@ async def check_password( """ async with ClientSession() as session: proxy_auth = get_basic_auth(proxy_user, proxy_pass) - if not await parsing_auth_code( - session, accountodactyl, proxy, proxy_user, proxy_pass - ): - return False + client_id = "riot-client" + scope = "openid link ban lol_region account" + await parse_auth_code(session, client_id, scope, proxy, proxy_auth) try: await rso_authorize(session, username, password, proxy, proxy_auth) except RSOAuthorizeError as e: diff --git a/setup.py b/setup.py index d53d093..ab9f499 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="league-client", - version="1.0.66", + version="1.0.67", author="Pradish Bijukchhe", author_email="pradishbijukchhe@gmail.com", description=(