Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 authored Mar 5, 2024
1 parent 669e9ea commit a8e2332
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ async def _request(self, method: str, url: str, retries: int = 3, skip_auth=Fals

session = aiohttp.ClientSession(
headers={"Content-Type": "application/json", "Accept": "application/json",
"User-Agent": "Renpho/2.1.0 (iPhone; iOS 14.4; Scale/2.1.0; en-US)"
"User-Agent": "Renpho/2.1.0 (iPhone; iOS 14.4; Scale/2.1.0; en-US)"
}
)

Expand Down Expand Up @@ -557,8 +557,8 @@ async def auth(self):

encrypted_password = self.encrypt_password(self.public_key, self.password)

data = {"secure_flag": "1", "email": self.email,
"password": encrypted_password}
data = self.prepare_data({"secure_flag": "1", "email": self.email,
"password": encrypted_password})

try:

Expand Down

0 comments on commit a8e2332

Please sign in to comment.