Fix room authentication
This commit is contained in:
parent
838c364066
commit
1297cf201b
2 changed files with 7 additions and 2 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
## Next version
|
||||
|
||||
- fix room authentication
|
||||
|
||||
## 1.1.1 (2019-04-14)
|
||||
|
||||
- add database class for easier sqlite3 access
|
||||
|
|
|
|||
|
|
@ -191,8 +191,11 @@ class Room:
|
|||
async def _on_bounce_event(self, packet: Any) -> None:
|
||||
data = packet["data"]
|
||||
|
||||
# Can we even authenticate?
|
||||
if not "passcode" in data.get("auth_options", []):
|
||||
# Can we even authenticate? (Assuming that passcode authentication is
|
||||
# available if no authentication options are given: Euphoria doesn't
|
||||
# (always) send authentication options, even when passcode
|
||||
# authentication works.)
|
||||
if not "passcode" in data.get("auth_options", ["passcode"]):
|
||||
self._set_connected_failed()
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue