From 84c858b878a002c384b488c3be0fb6aa876eb53d Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sun, 30 Jul 2023 07:12:51 +0000 Subject: [PATCH] fix issuer name --- api/tacticalrmm/accounts/serializers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/tacticalrmm/accounts/serializers.py b/api/tacticalrmm/accounts/serializers.py index 70eb8b79..78186aef 100644 --- a/api/tacticalrmm/accounts/serializers.py +++ b/api/tacticalrmm/accounts/serializers.py @@ -5,6 +5,8 @@ from rest_framework.serializers import ( SerializerMethodField, ) +from tacticalrmm.helpers import get_webdomain + from .models import APIKey, Role, User @@ -61,7 +63,7 @@ class TOTPSetupSerializer(ModelSerializer): def get_qr_url(self, obj): return pyotp.totp.TOTP(obj.totp_key).provisioning_uri( - obj.username, issuer_name="Tactical RMM" + obj.username, issuer_name=get_webdomain() )