From a6c4847ae2b4a4bd437e19cee638cc14626d3982 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 12 Jun 2024 16:28:55 +0200 Subject: [PATCH] feat(api): fixed signup imports --- ee/api/chalicelib/core/signup.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ee/api/chalicelib/core/signup.py b/ee/api/chalicelib/core/signup.py index 7c2467014..9e5fb1ad4 100644 --- a/ee/api/chalicelib/core/signup.py +++ b/ee/api/chalicelib/core/signup.py @@ -4,15 +4,12 @@ import logging from decouple import config import schemas -from chalicelib.core import users, telemetry, tenants +from chalicelib.core import users, telemetry, tenants, authorizers from chalicelib.utils import captcha, smtp from chalicelib.utils import helper from chalicelib.utils import pg_client from chalicelib.utils.TimeUTC import TimeUTC -from api.chalicelib.core import authorizers -from ee.api.chalicelib.core.users import change_jwt_iat_jti - logger = logging.getLogger(__name__) @@ -161,7 +158,7 @@ async def create_oauth_tenant(fullname: str, email: str): telemetry.new_client(tenant_id=r["tenant_id"]) r["smtp"] = smtp.has_smtp() - jwt_iat, jwt_r_jti, jwt_r_iat = change_jwt_iat_jti(user_id=r['userId']) + jwt_iat, jwt_r_jti, jwt_r_iat = users.change_jwt_iat_jti(user_id=r['userId']) return { "jwt": authorizers.generate_jwt(user_id=r['userId'], tenant_id=r['tenantId'], iat=jwt_iat, aud=f"front:{helper.get_stage_name()}"),