Skip to content

Commit

Permalink
FIX login check has to be done case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzio authored and sebthom committed Dec 13, 2024
1 parent f1ae6ff commit 09f4d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kleinanzeigen_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ async def handle_after_login_logic(self) -> None:
async def is_logged_in(self) -> bool:
try:
user_info = await self.web_text(By.ID, "user-email")
if self.config['login']['username'] in user_info:
if self.config['login']['username'].lower() in user_info.lower():
return True
except TimeoutError:
return False
Expand Down

0 comments on commit 09f4d0f

Please sign in to comment.