Use url token function to generate shared items federation token

merge-requests/20/merge
Bob Mottram 2021-07-26 10:20:49 +01:00
parent 4c8b96efc1
commit 47575a52a7
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ def generateSharedItemFederationTokens(sharedItemsFederatedDomains: [],
domainFound = True domainFound = True
break break
if not domainFound: if not domainFound:
newLine = domain + ':' + createPassword(64) newLine = domain + ':' + secrets.token_urlsafe(64)
tokens.append(newLine) tokens.append(newLine)
tokensAdded = True tokensAdded = True
if not tokensAdded: if not tokensAdded: