mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-13 10:51:51 +01:00
fix: clearing password input while logging in (#531)
* #530 Sending empty string to password input * #530 added comment for clarification
This commit is contained in:
@@ -523,6 +523,10 @@ class KleinanzeigenBot(WebScrapingMixin):
|
|||||||
async def fill_login_data_and_send(self) -> None:
|
async def fill_login_data_and_send(self) -> None:
|
||||||
LOG.info("Logging in as [%s]...", self.config.login.username)
|
LOG.info("Logging in as [%s]...", self.config.login.username)
|
||||||
await self.web_input(By.ID, "email", self.config.login.username)
|
await self.web_input(By.ID, "email", self.config.login.username)
|
||||||
|
|
||||||
|
# clearing password input in case browser has stored login data set
|
||||||
|
await self.web_input(By.ID, "password", "")
|
||||||
|
|
||||||
await self.web_input(By.ID, "password", self.config.login.password)
|
await self.web_input(By.ID, "password", self.config.login.password)
|
||||||
await self.web_click(By.CSS_SELECTOR, "form#login-form button[type='submit']")
|
await self.web_click(By.CSS_SELECTOR, "form#login-form button[type='submit']")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user