From 2d5e5d8408a5a37e031b96d0059b6a39a9e68e3a Mon Sep 17 00:00:00 2001 From: lian Date: Tue, 13 Jul 2021 18:12:06 +0800 Subject: [PATCH] decode two factor auth StaticToken --- seahub/two_factor/models/static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seahub/two_factor/models/static.py b/seahub/two_factor/models/static.py index 19f898e70c..0c3193f8f9 100644 --- a/seahub/two_factor/models/static.py +++ b/seahub/two_factor/models/static.py @@ -70,4 +70,4 @@ class StaticToken(models.Model): :rtype: str """ - return b32encode(urandom(5)).lower() + return b32encode(urandom(5)).lower().decode()