mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 02:54:52 -04:00
Fix manhole on py3 (pt 2) (#4067)
This commit is contained in:
parent
b69216f768
commit
e404ba9aac
2 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,8 @@ def manhole(username, password, globals):
|
|||
Returns:
|
||||
twisted.internet.protocol.Factory: A factory to pass to ``listenTCP``
|
||||
"""
|
||||
if not isinstance(password, bytes):
|
||||
password = password.encode('ascii')
|
||||
|
||||
checker = checkers.InMemoryUsernamePasswordDatabaseDontUse(
|
||||
**{username: password}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue