diff --git a/api/app.py b/api/app.py index b2b2275..eecfa38 100644 --- a/api/app.py +++ b/api/app.py @@ -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)" } ) @@ -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: