diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-10-02 17:37:14 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-10-02 17:37:14 -0400 |
commit | 655701e4e9911393e58f2b4ce06f44d6553e0f9c (patch) | |
tree | 775c79e0c08f3cfa6eafcec79a1261cb0aeb6200 /apworld/context.py | |
parent | fa9618214eeeec1e55a5e2d8db289375949a6b37 (diff) | |
download | lingo2-archipelago-655701e4e9911393e58f2b4ce06f44d6553e0f9c.tar.gz lingo2-archipelago-655701e4e9911393e58f2b4ce06f44d6553e0f9c.tar.bz2 lingo2-archipelago-655701e4e9911393e58f2b4ce06f44d6553e0f9c.zip |
Fix password authentication
Diffstat (limited to 'apworld/context.py')
-rw-r--r-- | apworld/context.py | 7 |
1 files 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): | |||
254 | return ui | 254 | return ui |
255 | 255 | ||
256 | async def server_auth(self, password_requested: bool = False): | 256 | async def server_auth(self, password_requested: bool = False): |
257 | if password_requested: | 257 | if password_requested and not self.password: |
258 | if self.password is None: | 258 | self.manager.game_ctx.send_connection_refused("Invalid password.") |
259 | self.manager.game_ctx.send_connection_refused("Slot requires a password.") | ||
260 | else: | ||
261 | self.manager.game_ctx.send_connection_refused("Invalid password.") | ||
262 | else: | 259 | else: |
263 | self.auth = self.username | 260 | self.auth = self.username |
264 | await self.send_connect() | 261 | await self.send_connect() |