This commit is contained in:
yumoqing 2026-03-26 11:49:12 +08:00
parent 0c69929a72
commit 059df2aef2

View File

@ -71,11 +71,11 @@ async with get_sor_context(request._run_ns, 'rbac') as sor:
d = await register_user(sor, udata) d = await register_user(sor, udata)
if d['status'] == 'error': if d['status'] == 'error':
return d return d
try: try:
ownerid = await get_owner_orgid(sor, orgid) ownerid = await get_owner_orgid(sor, orgid)
await openCustomerAccounts(sor, ownerid, orgid) await openCustomerAccounts(sor, ownerid, orgid)
except Exception as e: except Exception as e:
exception(f'{e}') exception(f'{e}')
r = d['data']['user'] r = d['data']['user']
await remember_user(r.id, username=r.username, userorgid=r.orgid) await remember_user(r.id, username=r.username, userorgid=r.orgid)