Add option to log in to custom puppet with shared secret

This commit is contained in:
Tulir Asokan
2019-12-15 17:10:04 +02:00
parent 39927ac6c0
commit 2ae4b23528
7 changed files with 35 additions and 9 deletions
+3
View File
@@ -424,4 +424,7 @@ def init(context: 'Context') -> Iterable[Awaitable[Any]]:
Puppet.displayname_template = SimpleTemplate(config["bridge.displayname_template"],
"displayname")
Puppet.login_shared_secret = config["bridge.login_shared_secret"].encode("utf-8")
Puppet.login_device_name = "Telegram Bridge"
return (puppet.try_start() for puppet in Puppet.all_with_custom_mxid())