Base solution for your next web application
Open Closed

Account self registration and activation do not disappear #2564


User avatar
0
rferrari created

Hi,

in my project in spite the fact that self registration is disabled in the tenant setting, CREATE ACCOUNT and EMAIL ACTIVATION links are still present in login form.

Could you advise?

Thanks


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    The code checking self registration is defined here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/Controllers/AccountController.cs#L532">https://github.com/aspnetzero/aspnet-ze ... er.cs#L532</a>.

    If you run this on localhost probably it cannot find tenant so cannot get setting for tenant. It should not be a problem in a subdomain url of tenants.

  • User Avatar
    0
    rferrari created

    Thanks I will work on this base.

    I also followed your indication on how to remove front end application and now each time I change language I have to log in again. Is that related to your indication? Thanks in advance

  • User Avatar
    0
    rferrari created

    OK I reviewed the code. Of course before login I cannot know the tenant but for subdomain url. If that is not implemented there is no way to know the tenant before login. As user registration and email activation are tenant settings they cannot be detected before login in this case.

    Do you have any hint for the other issue I mentioned? Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If you can use subdomain per tenant in your production, we can know tenant before login and this will work for you. EMAIL ACTIVATION will be visible in any case I think, see <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/Views/Account/Login.cshtml#L115">https://github.com/aspnetzero/aspnet-ze ... shtml#L115</a>.

    Maybe my suggestion caused this problem. Can you send your solution to <a href="mailto:[email protected]">[email protected]</a>, so we can check the problem faster.

    Thanks.

  • User Avatar
    0
    rferrari created

    I am ok with the indication for self registration and the use of subdomain.

    The other issue is related to the removal of front line application. I close this issue and open another one.

    Thanks