Base solution for your next web application

Activities of "alfar_re"

Still stuck. I need urgent assistance...

Hi,

I'm stuck with this. Any help?

Question

Hi,

We're developing an application with one user per tenant. We are using the mobile number as the username. I realised that there is an 'admin' user account that is created per tenant and even if you edit it gets recreated.

How can we get rid of this?

  • 9.1
  • MVC
  • .net core

Hi,

I successfully detected the admin login but after logging in I get this error

Current user did not login to the application!

What am I missing?

Hi,

Still haven't gotten a response on this. I made some changes and it worked for the tenant and I'd like to know how or where I switch to host.

`var usr = await _accountAppService.IsTenantAvailable(new IsTenantAvailableInput { TenancyName = loginModel.UsernameOrEmailAddress });

var userTenantId = usr.TenantId;

var tenancyNameOrNull = userTenantId.HasValue ? _tenantCache.GetOrNull((int)userTenantId)?.TenancyName : null;

var loginResult = await GetLoginResultAsync(loginModel.UsernameOrEmailAddress, loginModel.Password, tenancyNameOrNull);`

Hi,

Gone through the login logic. Not sure I fully understand how it functions but I modified this line at line 180 > AccountsController

var loginResult = await GetLoginResultAsync(loginModel.UsernameOrEmailAddress, loginModel.Password, await GetTenancyNameFromUsernameAsync(loginModel.UsernameOrEmailAddress));

Then reused the code like below;

`private async Task

        if (isTenantAvailable != null) { return isTenantAvailable.TenantId.ToString(); }
        else { throw new InvalidOperationException($"Given user ({userName}) could not be found!"); }
    }`
   

Let me know if this is the right direction or point me to the right direction. Thanks.

Hi @ismcagdas,

I see. I will try this out and let you know.

Hi @zony,

I see. The good thing is that the system we are building only allows one user per tenant and the username is a mobile number which is unique. That means that you will only have one tenant with one mobile number. That way it'll be easy to identify the tenants.

Hi,

How can I detect the current user/ tenant from the login page without using the tenant selection or subdomain?

  • ASP.NET
  • MVC
  • .NET CORE
  • Latest ABP Framework according to Zero 9.1

Hi,

I'm wondering if it is possible to have sub user accounts. My use case is - our software is used by property agents and they'd like to have their clients (landlords and tenants) have access to individual data. Can this be achieved off the bat by Zero or it would be a separate project?

Below is my project data

  • ASPNETZERO 8.1
  • MVC
  • .NET CORE
Showing 51 to 60 of 138 entries