fix(api): Fix authentication
This commit is contained in:
@@ -36,7 +36,7 @@ async def wp_get_cookies(username: str, password: str) -> dict:
|
|||||||
"""
|
"""
|
||||||
async with ClientSession(headers=headers) as session:
|
async with ClientSession(headers=headers) as session:
|
||||||
async with session.post(
|
async with session.post(
|
||||||
"https://www.wattpad.com/auth/login?nextUrl=%2F&_data=routes%2Fauth%2Flogin",
|
"https://www.wattpad.com/auth/login?nextUrl=%2F&_data=routes%2Fauth.login",
|
||||||
data={
|
data={
|
||||||
"username": username.lower(),
|
"username": username.lower(),
|
||||||
"password": password,
|
"password": password,
|
||||||
|
|||||||
Reference in New Issue
Block a user