Base solution for your next web application

Activities of "bobiasg"

Hi @JackyWang ,

Do you find solution for it ? I'm still on it.

Thank you.

Hi @ismcagdas,

I added a username field to tenant registration form. And with username is not equal 'admin', I throw error: 'entity not found'.

Do Abp Module Zero require admin username must be 'admin' ? How should i do if i want custom admin username in tenant registration ?

I use module zero template, version 1.2. In create tenant from TenantAppService, with admin username different than "admin", it throw error: "There is no entity User with id = xx".

View in source code, I found error cause by: CheckErrors(await UserManager.AddToRoleAsync(adminUser.Id, adminRole.Name)); (TenantAppService)

In UserManager.AddToRoleAsync, it call UpdateAsync --> GetOldUserNameAsync because username is not equal "admin" --> AbpStore.GetUserNameFromDatabaseAsync.

In AbpStore.GetUserNameFromDatabaseAsync, it begin new UnitOfWork with tenantId from AbpSession. And _userRepository.GetAsync(userId) throw error.

It is new code is updated in v 1.2.

Showing 1 to 3 of 3 entries