Activities of "Dev2ng"

Hi,

Do you have any solution for this?

Hi,

Registration is working fine now. It sets IsActive as false. But something weird is happening. Basically token API is failing (Due to user being inacive) which leads to application looping. See video.

https://streamable.com/879czu

This is the angular project that is generated while creating new ABP solution.

Hi, This is my CustomRegisterAppService.

using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
using System.Threading.Tasks;
using Volo.Abp.Account;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Identity;
using Volo.Abp.ObjectExtending;

namespace Actis.Base.CustomRegister
{
    [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(IAccountAppService))]
    public class CustomRegisterAppService : AccountAppService
    {
        public override async Task<IdentityUserDto> RegisterAsync(RegisterDto input)
        {
            await CheckSelfRegistrationAsync();

            await IdentityOptions.SetAsync();

            var user = new Volo.Abp.Identity.IdentityUser(GuidGenerator.Create(), input.UserName, input.EmailAddress, CurrentTenant.Id);
            input.MapExtraPropertiesTo(user);
            user.SetIsActive(false);
            (await UserManager.CreateAsync(user, input.Password)).CheckErrors();

            await UserManager.SetEmailAsync(user, input.EmailAddress);

            await UserManager.AddDefaultRolesAsync(user);
            return ObjectMapper.Map<Volo.Abp.Identity.IdentityUser, IdentityUserDto>(user);
        }

I am facing a issue and I am attaching a screenshot please look into it and let me know how we can resolve it

*await SettingManager.SetForUserAsync(userId, AccountSettingNames.ProfilePictureSource, "Image"); * worked instead of await SettingManager.SetForUserAsync(userId, AccountSettingNames.ProfilePictureSource, "2");

  • ABP Framework version: v8.0.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

Hi, I am using Azure AD for SSO and we have S1 server app service where our test site is deployed and in that server Api response is taking 4 to 5 secs rather if I switch to S3 pricing plan on azure App Service it gives the response in 400 ms.

I want to optimize this SSO on S1 level itself.

Hi,

I want to apply(await SettingManager.SetForUserAsync(userId, AccountSettingNames.ProfilePictureSource, "2");) in this api given below.

public async Task CustomUserImageUpdate(string userId, IBlobContainer lobContainer, string image)
 {
     try
     {
         byte[] imageBytes = Convert.FromBase64String(image);
         await lobContainer.SaveAsync(userId, imageBytes, true);
     }
     catch (Exception ex)
     {

         throw;
     }
 }

Hi,

"The property or indexer 'IdentityUser.IsActive' cannot be used in this context because the set accessor is inaccessible"

I am getting this error when I am trying to set isactive to false.

  • ABP Framework version: v8.0.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

Hi, We want to create one Api for tenant admin so that he/she can update profile picture of tenant users. We were able to save image in a blob container for a particular user using a custom Api by creating a custom blob container (with name "account-profile-pictures") and calling the inbuilt "await lobContainer.SaveAsync(userId, imageBytes, true);". When user logs in and we hit account profile picture Api(ABP provided) it still shows the default image rather than showing the image that we have saved using the above method.

After some investigation I notice that there is one field type whose value can be 0,1,2 while user itself set's the profile picture the value of type is 2, so I want to know where I can set the type as 2 for a particular user so that profile picture gets changed.

  • ABP Framework version: v8.0.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

Hi, I want to set the user as inactive at the time of self registration before user is logged in for a specific tenant and also want to show a message to a user that " You will be able to login once the tenant admin approves your account."

Showing 1 to 10 of 28 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11