rbac/www/user/register.dspy
2025-01-03 17:42:22 +08:00

10 lines
387 B
Plaintext

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