mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 00:43:53 +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
|
:rtype: str
|
||||||
"""
|
"""
|
||||||
return b32encode(urandom(5)).lower()
|
return b32encode(urandom(5)).lower().decode()
|
||||||
|
Reference in New Issue
Block a user