Activities of "EngincanV"

You can inherit from AbpSignInManager and override the PasswordSignInAsync method.

https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#overriding-a-service-class

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(AbpSignInManager))]
public class MyCustomSignInManager : AbpSignInManager 
{
    public async override Task<SignInResult> PasswordSignInAsync(string userName, string password,
        bool isPersistent, bool lockoutOnFailure)
    {
        //your logic
    }
}

When you run dotnet nuget list source command, is nuget.org on top?

https://support.abp.io/QA/Questions/414/ABP-Suite-install-problem#answer-a69dadf8-946b-01e4-d63f-39f78fb3375e

You can examine this document to see how you can create a CustomSigninManager.

And after you've created CustomSigninManager, you can override the SignInAsync method and implement your logic.

Don't forget to register your CustomSigninManager => https://docs.abp.io/en/abp/2.9/How-To/Customize-SignIn-Manager#register-to-dependency-injection

Can you also specify the version (--version 4.4.2) like below?

dotnet tool install -g Volo.Abp.Suite --add-source https://nuget.abp.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/v3/index.json --version 4.4.2

Can you navigate to https://commercial.abp.io/my-organizations/ and get your Api-key for your organization?

After obtaining your api-key, add nuget source by using the following command.

dotnet nuget add source <your_nuget_source>

Then run the dotnet nuget list source command again to see the source.

Hi @MahmoudA, can you list your nuget resources by using the following code?

dotnet nuget list source

After you run this command, you should be able to see the ABP Commercial NuGet Source [Enabled] on your terminal. Then, you can install the suite with the following command (change the <ABP Commercial NuGet Source> with the index.json file path under the ABP Commercial NuGet Source [Enabled] section on your terminal)

<ABP Commercial NuGet Source> => https://nuget.abp.io/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/v3/index.json (change the xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx part with your api-key).

dotnet tool install -g Volo.Abp.Suite --add-source <ABP Commercial NuGet Source>
  • You can also refer to this.

Hi @cellero, please wrap your create and update methods with try-catch blocks and handle exception by yourself (by using HandleErrorAsync method). => https://support.abp.io/QA/Questions/1523/Blazor-Server-ABP-Exception-Dialog-not-shown#answer-7939465b-3349-3100-2cc1-39fd4fd8c78a

private async Task CreateBookAsync()
{
   try
   {
      await BooksAppService.CreateAsync(NewBook);
      await GetBooksAsync();
      CreateBookModal.Hide();
   }
   catch (Exception ex)
   {
      await HandleErrorAsync(ex);
   }
}
  • Please also be sure about your *.razor page inherits from your base component.
@page "/books"
@attribute [Authorize(MyPermissions.Books.Default)]
@inherits MyPageComponentBase //be sure about your razor page inherits from your base component
///...

Hi @viswajwalith, with v4.4.1 you can add custom CSS by specifying cssClass for your menu items.

Hi @Shoba24, it seems your credentials are wrong. Can you check your username and password in smtp settings?

  • Abp.Mailing.Smtp.Password must be an encrypted value. (https://docs.abp.io/en/abp/4.4/Emailing#encrypt-the-smtp-password)
  • So you may want to define your password by using SettingManager. It internally encrypts the values on set and decrypts on get.
public class YourDomainModule : AbpModule
{
   public override void OnApplicationInitialization(ApplicationInitializationContext context)
   {
      var settingManager = context.ServiceProvider.GetService<SettingManager>();
            
      //encrypts the password on set and decrypts on get
      settingManager.SetGlobalAsync(EmailSettingNames.Smtp.Password, "your_password");
   }
      
    //...  
}   

Hi @piseth, we've integrated the plugin package into your project and send it back to you via e-mail.

Showing 661 to 670 of 708 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13