打开 关闭

Custom password validations not working when changing password with ""Should change password on next login" feature #5330


User avatar
0
hardip 创建
  • ABP Framework version: v7

  • UI type: Blazor

  • DB provider: EF Core

  • Tiered (MVC): yes

  • Exception message and stack trace:

  • Steps to reproduce the issue:"

  • In the Settings : Identity Management : Password strength settings

  • Uncheck the custom password settings

  • Go to the users => Create-Edit the user and check the "Should change password on next login"

  • Now logout and login with newly created - updated account

  • Goes to the ChangePassword page, when submitted new password still shows the password validations errors

Using the default abp component, not extended or anything.

The custom validation working fine in the Account => Change Password Tab

refer the gif


15 答案
  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    I will check it.

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    This is a problem, we will fix it in the next patch version.

    This is a temporary solution:

    [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(RegisterModel))]
    public class MyRegisterModel : RegisterModel
    {
        public override async Task<IActionResult> OnPostAsync()
        {
            await IdentityOptions.SetAsync();
            return await base.OnPostAsync();
        }
    }
    
  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Your ticket was refunded.

  • User Avatar
    0
    hardip 创建

    Applied the changes as recommended, but still facing issue

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    What's your email, I will share the project with you.

  • User Avatar
    0
    hardip 创建

    hardip.dodiya@faciletechbolab.com

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Shared

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    It looks the email address is incorrect

  • User Avatar
    0
    hardip 创建

    Sorry, my bad. Email : hardip.dodiya@faciletechnolab.com

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Shared

  • User Avatar
    0
    hardip 创建

    Thank you.

  • User Avatar
    0
    hardip 创建

    Tested in the sample project, custom password validation feature working fine. All the packages were v7.2.3.

    So updated to to 7.2.3 then validations are firing as per settings but when correct validations are entered getting the connections errors.

    refer

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    Please check your rabbitmq server to make sure it is available

  • User Avatar
    0
    hardip 创建

    Hi,

    Just using the

    [DependsOn( typeof(AbpEventBusRabbitMqModule), )]

    in the Modules only. Not any server or anything like it.

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    When you use the rabbitmq module, you need to make sure the rabbitmq server is available

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11