diff --git a/wwwroot/user/register.dspy b/wwwroot/user/register.dspy index 0c3b7eb..5dac922 100644 --- a/wwwroot/user/register.dspy +++ b/wwwroot/user/register.dspy @@ -5,6 +5,7 @@ async with db.sqlorContext(dbname) as sor: orgid = await register_user(sor, params_kw) if get_owner_orgid and openCustomerAccounts: ownerid = await get_owner_orgid(sor, orgid) - await openCustomerAccounts(sor, ownerid, orgid) + if openCustomerAccounts: + await openCustomerAccounts(sor, ownerid, orgid) return UiMessage(title="Success", message="register success") return UiError(title='Error', message="register failed")