Activities of "learnabp"

We want to embed a link in a userfriendlymessage message which is thrown in a AppService

how can we achive this?

I have discoverd a side effect when implementing this in our application to deal with concurrent user.

It seems when we updated the user via his profile or in the users table under Identity the security stamp is updated and the user is logged out.

can you please suggest how we can over come this, if the user is updating his profile or via the user table the user shouldn't update its seucirty stamp.

Question
  • ABP Framework version: v4.4.0 RC2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
  1. Run abp suite
  2. Click Create new Solutions button
  3. Fill in the form with the following
    1. UI Framework: MVC
    2. Mobile React mobile
    3. Database Provider: EntityFramework
    4. Database Mnagaement Server: SQLServer
    5. Tick Public Site
    6. Tick Preview Version

Issues found

  1. Open the solutions and you will find that the ABP License is missing in appsettings.jason and when you run the DB Migrator project you getting a License missing error.
  2. When i run the public site i get the following error

Have a lok at the below screen shoot when at the login screen and not logged in when i supply the __tenantId as a QueryStringParamater it doesn't populate the Tenant-Switch-Box automatically

i have tried that it does wirk unless the user is authenticated

When the user is not logged in I would like to user the __teantid= parament to set the teannt but it doesn't seem to be working.

can you please help

We would like to automatically login in the user when they Confirm their Phone Number or Reset their Password using the forgot password feature, having the user redirected to the login screen or a confirmation screen adds confusion.

In the below code there is a task //TODO: Try to automatically login! can we please have the solution so we can use it in our SaaS product for DesertFire?

public virtual async Task<IActionResult> OnPostAsync()
{

   try
   {
       ValidateModel();
       SetNormalizeReturnUrl();

       await AccountAppService.ResetPasswordAsync(
           new ResetPasswordDto
           {
               UserId = UserId,
               ResetToken = ResetToken,
               Password = Password
           }
       );
   }
   catch (Exception e)
   {
       if (e is AbpIdentityResultException && !string.IsNullOrWhiteSpace(e.Message))
       {
           Alerts.Warning(GetLocalizeExceptionMessage(e));
           return Page();
       }

       if (e is AbpValidationException)
       {
           return Page();
       }

       throw;
   }

   //TODO: Try to automatically login!
   return RedirectToPage("./ResetPasswordConfirmation", new
   {
       returnUrl = NormalizeReturnUrl
   });
}

I have deployed our app to Azure WebApp and are using DevOps pipelines to deploy using packaged deploy method using zp file

Seems when we do this ABP is unable to write the log to "Logs/logs.txt" becuase the wwwroot dir is set to read only by design

            Log.Logger = new LoggerConfiguration()
#if DEBUG
                .MinimumLevel.Debug()
#else
                .MinimumLevel.Information()
#endif
                .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
                .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
                .Enrich.FromLogContext()
                .WriteTo.Async(c => c.File("Logs/logs.txt"))
#if DEBUG
                .WriteTo.Async(c => c.Console())
#endif
                .CreateLogger();

what is the best way to write logs on azure?

i think thia line is cauaing the problem for a tenant becuase the emailsetting should only be avalabile to the hist right ?

modules/setting-management/src/Volo.Abp.SettingManagement.Web/AbpSettingManagementWebModule.cs

        Configure&lt;RazorPagesOptions&gt;(options =>
        {
            options.Conventions.AuthorizePage("/SettingManagement/Index", SettingManagementPermissions.Emailing);
        });
  1. Update tools to 4.3.2
  2. run command abp new Acme.BookStore
  3. Open solution file
  4. Run *.DbMigrator and then run the solution with *.Web project as startup project
  5. Login as admin
  6. Create a Tenant Test
  7. Logout
  8. Switch Tenant to new tenant Test
  9. Try and navigate to settings under Administration menu
  10. You will be redirected to Access Denied Page
Showing 61 to 70 of 134 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35