mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Use latest little-boxes
This commit is contained in:
parent
669fec0c2b
commit
ee7e47eba0
2 changed files with 3 additions and 3 deletions
|
@ -174,7 +174,7 @@ def _drop_db():
|
|||
mongo_client.drop_database(DB_NAME)
|
||||
|
||||
|
||||
KEY = get_key(ID, USERNAME, DOMAIN)
|
||||
KEY = get_key(ID, ID+"#main-key", USERNAME, DOMAIN)
|
||||
|
||||
|
||||
JWT_SECRET = get_secret_key("jwt")
|
||||
|
|
|
@ -24,9 +24,9 @@ def get_secret_key(name: str, new_key: Callable[[], str] = _new_key) -> str:
|
|||
return f.read()
|
||||
|
||||
|
||||
def get_key(owner: str, user: str, domain: str) -> Key:
|
||||
def get_key(owner: str, _id: str, user: str, domain: str) -> Key:
|
||||
""""Loads or generates an RSA key."""
|
||||
k = Key(owner)
|
||||
k = Key(owner, _id)
|
||||
user = user.replace(".", "_")
|
||||
domain = domain.replace(".", "_")
|
||||
key_path = os.path.join(KEY_DIR, f"key_{user}_{domain}.pem")
|
||||
|
|
Loading…
Reference in a new issue