vars: delete old var when changing share

When changing a password from non-shared to shared, we want to remove the old one
This commit is contained in:
DavHau
2025-08-25 16:50:57 +07:00
parent fcdfd80b34
commit c308fd63a7
6 changed files with 109 additions and 24 deletions

View File

@@ -46,7 +46,7 @@ class Var:
except UnicodeDecodeError:
return "<binary blob>"
def set(self, value: bytes) -> Path | None:
def set(self, value: bytes) -> list[Path]:
assert self._store is not None
assert self._generator is not None
return self._store.set(self._generator, self, value)