From 03037d27f29227eaf48b5eea43a117b3301c12d3 Mon Sep 17 00:00:00 2001 From: lian Date: Thu, 5 Aug 2021 13:47:06 +0800 Subject: [PATCH] use SITE_NAME as issuer for 2fa --- seahub/two_factor/views/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seahub/two_factor/views/core.py b/seahub/two_factor/views/core.py index 9134b2772e..f9a90a2cfb 100644 --- a/seahub/two_factor/views/core.py +++ b/seahub/two_factor/views/core.py @@ -286,7 +286,7 @@ class QRGeneratorView(View): otpauth_url = get_otpauth_url( accountname=self.request.user.username, - issuer=get_current_site(self.request).name, + issuer=config.SITE_NAME, secret=key, digits=totp_digits())