Skip to content

Commit 09f4d0f

Browse files
provinziosebthom
authored andcommitted
FIX login check has to be done case insensitive
1 parent f1ae6ff commit 09f4d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kleinanzeigen_bot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ async def handle_after_login_logic(self) -> None:
444444
async def is_logged_in(self) -> bool:
445445
try:
446446
user_info = await self.web_text(By.ID, "user-email")
447-
if self.config['login']['username'] in user_info:
447+
if self.config['login']['username'].lower() in user_info.lower():
448448
return True
449449
except TimeoutError:
450450
return False

0 commit comments

Comments
 (0)