call sync mesh after sso user created

This commit is contained in:
wh1te909 2024-11-16 19:10:17 +00:00
parent 7f9fc484e8
commit d1df40633a
1 changed files with 2 additions and 0 deletions

View File

@ -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):