1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

Merge pull request #4956 from haiwen/2fa

decode two factor auth StaticToken
This commit is contained in:
Daniel Pan
2021-07-29 16:49:52 +08:00
committed by GitHub

View File

@@ -70,4 +70,4 @@ class StaticToken(models.Model):
:rtype: str
"""
return b32encode(urandom(5)).lower()
return b32encode(urandom(5)).lower().decode()