From 5870ed6a9ddc78d4fca068925dfe120589701be5 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 28 Jul 2025 16:44:09 +0800 Subject: [PATCH] bugfix --- wwwroot/user/register.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/user/register.dspy b/wwwroot/user/register.dspy index f46e6f4..0dae5ec 100644 --- a/wwwroot/user/register.dspy +++ b/wwwroot/user/register.dspy @@ -3,9 +3,9 @@ db = DBPools() dbname = get_module_dbname('rbac') async with db.sqlorContext(dbname) as sor: orgid = await register_user(sor, params_kw) + openCustomerAccounts = globals().get('openCustomerAccounts') if get_owner_orgid and openCustomerAccounts: ownerid = await get_owner_orgid(sor, orgid) - openCustomerAccounts = globals().get('openCustomerAccounts') if openCustomerAccounts: await openCustomerAccounts(sor, ownerid, orgid) return UiMessage(title="Success", message="register success")