bugfix
This commit is contained in:
parent
059df2aef2
commit
3098c3dd7e
@ -4,10 +4,10 @@ dbname = get_module_dbname('rbac')
|
|||||||
async with db.sqlorContext(dbname) as sor:
|
async with db.sqlorContext(dbname) as sor:
|
||||||
orgid = await register_user(sor, params_kw)
|
orgid = await register_user(sor, params_kw)
|
||||||
try:
|
try:
|
||||||
ownerid = await get_owner_orgid(sor, orgid)
|
await openCustomerAccounts(sor, '0', orgid)
|
||||||
await openCustomerAccounts(sor, ownerid, orgid)
|
debug(f'{orgid} accounts opened')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exception(f'{e}')
|
exception(f'{e}')
|
||||||
|
|
||||||
return UiMessage(title="Success", message="register success")
|
return UiMessage(title="Success", message=f"register success {orgid}")
|
||||||
return UiError(title='Error', message="register failed")
|
return UiError(title='Error', message="register failed")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user