From d1df40633af43a858e2bfeec7838033c075410ba Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Sat, 16 Nov 2024 19:10:17 +0000 Subject: [PATCH] call sync mesh after sso user created --- api/tacticalrmm/ee/sso/adapter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/tacticalrmm/ee/sso/adapter.py b/api/tacticalrmm/ee/sso/adapter.py index 262325eb..c0dcc661 100644 --- a/api/tacticalrmm/ee/sso/adapter.py +++ b/api/tacticalrmm/ee/sso/adapter.py @@ -10,6 +10,7 @@ from allauth.socialaccount.models import SocialApp from django.core.exceptions import PermissionDenied from accounts.models import Role +from core.tasks import sync_mesh_perms_task from core.utils import token_is_valid from tacticalrmm.logger import logger from tacticalrmm.utils import get_core_settings @@ -28,6 +29,7 @@ class TacticalSocialAdapter(DefaultSocialAccountAdapter): "Provider settings or Role not found. Continuing with blank permissions." ) user.totp_key = pyotp.random_base32() # not actually used + sync_mesh_perms_task.delay() return user def is_open_for_signup(self, request, sociallogin):