tfa 显示 url
This commit is contained in:
@@ -411,7 +411,7 @@ class TwoFactorAuthAPIView(APIView):
|
|||||||
user.tfa_token = token
|
user.tfa_token = token
|
||||||
user.save()
|
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()
|
buf = StringIO.StringIO()
|
||||||
image.save(buf, 'gif')
|
image.save(buf, 'gif')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user