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:
@@ -70,4 +70,4 @@ class StaticToken(models.Model):
|
||||
|
||||
:rtype: str
|
||||
"""
|
||||
return b32encode(urandom(5)).lower()
|
||||
return b32encode(urandom(5)).lower().decode()
|
||||
|
Reference in New Issue
Block a user