[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2022-01-03 21:06:45 +00:00
parent ebc9fd7758
commit 13172e6856

View File

@@ -355,7 +355,7 @@ def hash_token(token, salt=8, rounds=16384, algorithm='sha512'):
h.update(btoken) h.update(btoken)
digest = h.hexdigest() digest = h.hexdigest()
return "{algorithm}:{rounds}:{salt}:{digest}".format(**locals()) return f"{algorithm}:{rounds}:{salt}:{digest}"
def compare_token(compare, token): def compare_token(compare, token):