Skip to content

Commit

Permalink
remove Tema New create
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares committed Apr 25, 2023
1 parent e923edb commit b0ffc5b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions weni/auth/backends.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import logging

import pytz
from django.conf import settings

from mozilla_django_oidc.auth import OIDCAuthenticationBackend
from temba.orgs.models import Org

LOGGER = logging.getLogger("weni_django_oidc")

Expand Down Expand Up @@ -33,18 +29,6 @@ def create_user(self, claims):

user.save()

org = Org.objects.create(
name="Temba New",
timezone=pytz.timezone("America/Sao_Paulo"),
brand=settings.DEFAULT_BRAND,
created_by=user,
modified_by=user,
)
org.administrators.add(user)

# initialize our org, but without any credits
org.initialize(branding=org.get_branding(), topup_size=0)

return user

def update_user(self, user, claims):
Expand Down

0 comments on commit b0ffc5b

Please sign in to comment.