Aktivity „surajlokhandemmew“

i am getting this error : using Microsoft.Extensions.Options;

Options must be derived from the Volo.Abp.Options.AbpDynamicOptionsManager`1!",

why this api (await _identityUserManager.AddPasswordAsync (userdetails,input.Password)).CheckErrors(); is asking for a password with non alphanumeric and upper case character when i have disabled it in settings.

does usermanager need ay permission?? and its this class right? IdentityUserManager

Below is the method

  [AllowAnonymous]
  public async Task<bool> PostUpdatePassword(UpdatePasswordDto input)
  {
      try
      {
          var userdetails = await _identityRepository.FindByNormalizedUserNameAsync(input.userId);

          var query = await _verificationCodeRepository.GetQueryableAsync();
          VerificationCode val = new VerificationCode();
           val = query.Where(x => x.PhoneNumber == userdetails.PhoneNumber && x.Validity > DateTime.Now).OrderByDescending(x => x.Validity).FirstOrDefault();
     
          if (val.Code == input.Code)
          {
             // var userdetails = await _identityUserRepository.GetAsync(userId);
              if (userdetails != null)
              {
                  IdentityUserUpdatePasswordInput identityUserUpdatePasswordInput = new IdentityUserUpdatePasswordInput();
                  identityUserUpdatePasswordInput.NewPassword = input.Password;

                //   var userUpdateDto = ObjectMapper.Map<IdentityUserDto, IdentityUserUpdateDto>(userdetails);
                 await  _identityUserRepository.UpdatePasswordAsync(userdetails.Id, identityUserUpdatePasswordInput);
                 //  await _identityUserRepository.UpdateAsync(userdetails.Id, userUpdateDto);
                  return true;
              }
              else
              {
                  return false;
              }

          }
          else
              return false;

      }
      catch (Exception e)
      {
          throw new UserFriendlyException(e.Message);
      }
  }


i am getting exception on this line await _identityUserRepository.UpdatePasswordAsync(userdetails.Id, identityUserUpdatePasswordInput); actually its working on localhost but not on server

[AllowAnonymous] still not working getting authorization error

Not actually this one is simple string encryption , i am looking for complete payload encryption at client app and decryption on server basically more like middleware which can intercept all api requests and decrypt the payload before actually calling the api. the request will be encrypted at client app - mobile or angular whatever.

I really appreciate you responding to all my queries. I will explain that order thing, meanwhile i just need to know is there any inbuild method available in abp framwork to encrypt and decrypt the payload?

 var userdetails = await _identityUserRepository.GetAsync(userId);
 if(userdetails != null)
 {
     if(type == 0)
         userdetails.PhoneNumberConfirmed = true;
     else
     userdetails.EmailConfirmed = true;
     var userUpdateDto = ObjectMapper.Map<IdentityUserDto, IdentityUserUpdateDto>(userdetails);
     await _identityUserRepository.UpdateAsync(userId, userUpdateDto);
     return "true";
 }

Shhould i Add this IdentityUserDto, IdentityUserUpdateDto mapping manually or there is alternative? I am getting mapping no0t found error

2024-04-11 05:58:20.329 +04:00 [WRN] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.", "details": "UserFriendlyException: Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.\r\nSTACK TRACE: at MyDhobi.Verify.VerifiationProcessService.PostUpdatePassword(UpdatePasswordDto input) in

Seems like you don't have the permission, make sure the permission is assigned.

but its an open api , forgot passowrd, how can i add permission here?

Hi,

I guess the problem has been fixed in the next version.

Could you update your project and CLI&Suite to 8.1.0 and try again?

Still same unable to see order details. dop i have to regenerate everything after update?

Zobrazených 11 až 20 z 41 záznamov
Made with ❤️ on ABP v8.2.0-preview Updated on marca 25, 2024, 15:11