mirror of
https://github.com/maubot/maubot
synced 2025-08-29 08:50:38 +00:00
Add web handler decorators
This commit is contained in:
parent
304c1b5536
commit
9bd06a3d64
7 changed files with 91 additions and 16 deletions
|
@ -26,7 +26,7 @@ bcrypt_regex = re.compile(r"^\$2[ayb]\$.{56}$")
|
|||
class Config(BaseFileConfig):
|
||||
@staticmethod
|
||||
def _new_token() -> str:
|
||||
return "".join(random.choice(string.ascii_lowercase + string.digits) for _ in range(64))
|
||||
return "".join(random.choices(string.ascii_lowercase + string.digits, k=64))
|
||||
|
||||
def do_update(self, helper: ConfigUpdateHelper) -> None:
|
||||
base = helper.base
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue