mirror of
https://github.com/maubot/maubot
synced 2025-08-29 12:10:38 +00:00
Improve config comments and errors with mbc auth
This commit is contained in:
parent
61711e8329
commit
8c3e3a3255
5 changed files with 50 additions and 31 deletions
|
@ -55,7 +55,10 @@ class Config(BaseFileConfig):
|
|||
base["server.unshared_secret"] = self._new_token()
|
||||
else:
|
||||
base["server.unshared_secret"] = shared_secret
|
||||
copy("registration_secrets")
|
||||
if "registration_secrets" in self:
|
||||
base["homeservers"] = self["registration_secrets"]
|
||||
else:
|
||||
copy("homeservers")
|
||||
copy("admins")
|
||||
for username, password in base["admins"].items():
|
||||
if password and not bcrypt_regex.match(password):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue