Skip to content

Commit

Permalink
fix: check password bugfix (#34)
Browse files Browse the repository at this point in the history
* fix: use new authcode parsing function

* chore: release 1.0.67
  • Loading branch information
chiraqL authored Jul 14, 2024
1 parent 12e8fdd commit ae2735b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions league_client/password.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
Expand Down

0 comments on commit ae2735b

Please sign in to comment.