rbac/wwwroot/user/register.dspy
2025-12-16 13:19:36 +08:00

14 lines
428 B
Plaintext

debug(f'{params_kw=}')
db = DBPools()
dbname = get_module_dbname('rbac')
async with db.sqlorContext(dbname) as sor:
orgid = await register_user(sor, params_kw)
try:
ownerid = await get_owner_orgid(sor, orgid)
await openCustomerAccounts(sor, ownerid, orgid)
except Exception as e:
exception(f'{e}')
return UiMessage(title="Success", message="register success")
return UiError(title='Error', message="register failed")