rbac/wwwroot/user/register.dspy
2026-04-01 18:05:51 +08:00

14 lines
423 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:
await openCustomerAccounts(sor, '0', orgid)
debug(f'{orgid} accounts opened')
except Exception as e:
exception(f'{e}')
return UiMessage(title="Success", message=f"register success {orgid}")
return UiError(title='Error', message="register failed")