diff --git a/account/views/oj.py b/account/views/oj.py index d6783e3a..99051ae5 100644 --- a/account/views/oj.py +++ b/account/views/oj.py @@ -102,7 +102,7 @@ class TwoFactorAuthAPI(APIView): user.save() label = f"{SysOptions.website_name_shortcut}:{user.username}" - image = qrcode.make(OtpAuth(token).to_uri("totp", label, SysOptions.website_name)) + image = qrcode.make(OtpAuth(token).to_uri("totp", label, SysOptions.website_name.replace(" ", ""))) return self.success(img2base64(image)) @login_required