fix: better file locking
This commit is contained in:
parent
1b8e9c3502
commit
1f9efb7b3f
1 changed files with 1 additions and 1 deletions
|
|
@ -1438,7 +1438,7 @@ class Document(BaseDocument):
|
|||
|
||||
def get_signature(self):
|
||||
"""Return signature (hash) for private URL."""
|
||||
return hashlib.sha224(get_datetime_str(self.creation).encode()).hexdigest()
|
||||
return hashlib.sha224(f"{self.doctype}:{self.name}".encode(), usedforsecurity=False).hexdigest()
|
||||
|
||||
def get_document_share_key(self, expires_on=None, no_expiry=False):
|
||||
if no_expiry:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue