From c93d7a5fbc0c79d10829c764d0521b64d1ada65f Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Sat, 12 Dec 2015 21:26:09 +0800 Subject: [PATCH] =?UTF-8?q?tfa=20=E6=98=BE=E7=A4=BA=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- account/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/views.py b/account/views.py index 6e27be0..8f9377b 100644 --- a/account/views.py +++ b/account/views.py @@ -411,7 +411,7 @@ class TwoFactorAuthAPIView(APIView): user.tfa_token = token user.save() - image = qrcode.make(OtpAuth(token).to_uri("totp", "OnlineJudge", "OnlineJudge")) + image = qrcode.make(OtpAuth(token).to_uri("totp", "OnlineJudgeAdmin", settings.WEBSITE_INFO["url"])) buf = StringIO.StringIO() image.save(buf, 'gif')