From 655701e4e9911393e58f2b4ce06f44d6553e0f9c Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 2 Oct 2025 17:37:14 -0400 Subject: Fix password authentication --- apworld/context.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apworld/context.py b/apworld/context.py index 63645a4..e78ce35 100644 --- a/apworld/context.py +++ b/apworld/context.py @@ -254,11 +254,8 @@ class Lingo2ClientContext(CommonContext): return ui async def server_auth(self, password_requested: bool = False): - if password_requested: - if self.password is None: - self.manager.game_ctx.send_connection_refused("Slot requires a password.") - else: - self.manager.game_ctx.send_connection_refused("Invalid password.") + if password_requested and not self.password: + self.manager.game_ctx.send_connection_refused("Invalid password.") else: self.auth = self.username await self.send_connect() -- cgit 1.4.1