Base solution for your next web application
Open Closed

Problem Login as Host in Tenant Subdomain #10700


User avatar
0
QuickApp created

What is your product version? v10.2.0 What is your product type (Angular or MVC)? Angular What is product framework type (.net framework or .net core)? .Net Core

Hi, I created a new tenant for testing purposes. When I tried to login with admin and password information, it threw me on the host screen on my first try. (The host login also uses the same username and password.) In my next attempts, it correctly directed me to the relevant tenant screen.

https://imgyukle.com/f/2021/11/23/k1Ul5c.png

Also, when I try a tenant name that does not exist (xx.site.com), I can log in with the host information. Shouldn't it redirect me to the main domain?

I sent more detailed information to [email protected] as an e-mail.


5 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @QuickApp If there is no tenant, it means you are host. It is how it works. But we can implement redirecting to the main domain when login in different subdomain. I created an issue about it. You can follow the progress here: https://github.com/aspnetzero/aspnet-zero-core/issues/4118

  • User Avatar
    0
    QuickApp created

    If there is a tenant, is it not necessary to add a tenantId in the SQL query? As you said, if there is no tenant, it must be logged in as a host.

    In the example I gave, there is a tenant and it enters as a host. Isn't this a bug?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @QuickApp

    Sorry, I thing your problem was solved.

    In the example I gave, there is a tenant and it enters as a host. Isn't this a bug?

    Sorry for the delay. Yes, if tenant exists, it must be used. Could you provide a sample URL for testing this ? You can share it with [email protected] with test credentials.

    Thanks,

  • User Avatar
    0
    QuickApp created

    Hi @ismcagdas

    I have forwarded the e-mail I shared the information before to you again.

    Best regards

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @QuickApp

    Thanks, our technical team will help you via email.