Open Closed

ABP Commercial Created Tenant Problems #3727


User avatar
0
BeytullahBB created
  • ABP Framework version: v4.4.2
  • UI type: Angular & Dotnet Core 5.0
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello, I have a technical problem. We are trying to create the developer environment for our project. For this, I created a new database for the developer environment (appsetting.dev.json) Everything worked normally until now, but after that I wanted to add a new tenant. When adding Tenant I defined admin mail adress as hi@developer.dev and the password as Developer123. When I log out and try to log in to the system with the new tenant with hi@developer.dev which I supposed was my admin, I recieved “Invalid user id or password” I checked the AbpUsers table and couldn’t see the hi@developer.dev user.

Question 1: Without selecting a tenant I could login to the system but when I select the tenant I cannot login to the system, what did I do wrong?

When I have a problem with the hi@developer.dev, I tried to register as new user by swithing to Developer tenant. This time I got an smtp error. Here is my second question. When we try to register as new user, can we cancel the event of sending an e-mail to the relevant person? If yes, how will it be? I would be glad if you help. Good work, Take it easy.

Screenshots Stage-1:https://prnt.sc/0TfSgjcU0m5r Stage-2:https://prnt.sc/eR8P-KqugBzl Stage-3:https://prnt.sc/F8I8bNOCqcoi Stage-4:https://prnt.sc/TlHAzsoPX13d Problem 2: Stage-1:https://prnt.sc/QZsht_iZRC6n Stage-2:https://prnt.sc/sOGeFOi214br Errors: https://www.file.io/hbhY/download/4KdDOpOU9zxL


1 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Question 1: Without selecting a tenant I could login to the system but when I select the tenant I cannot login to the system, what did I do wrong?

    See: https://support.abp.io/QA/Questions/1360/Cannot-create-a-new-tenant-after-migrating-to-43X#answer-f0f20382-2798-a9bd-51ec-39fc92fb57fe


    Here is my second question. When we try to register as new user, can we cancel the event of sending an e-mail to the relevant person? If yes, how will it be?

    ABP templates do not send e-mails to newly registered people by default. You must have changed a setting before for this. Please check the settings I have indicated in the screenshot below.

    Settings/Identity Management


    Additional Information

    When I have a problem with the hi@developer.dev, I tried to register as new user by swithing to Developer tenant. This time I got an smtp error.

    If you want the mail never to be sent but only written to the log for a specific environment, you need to follow the code, below:

    Add the following code to the ConfigureServices method of MyProjectNameDomainModule in MyProjectName.Domain.

    #if DEBUG
            context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>());
    #endif
    
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11