rbac/wwwroot/user/register.dspy
2025-07-28 16:44:09 +08:00

13 lines
513 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)
openCustomerAccounts = globals().get('openCustomerAccounts')
if get_owner_orgid and openCustomerAccounts:
ownerid = await get_owner_orgid(sor, orgid)
if openCustomerAccounts:
await openCustomerAccounts(sor, ownerid, orgid)
return UiMessage(title="Success", message="register success")
return UiError(title='Error', message="register failed")