Open Closed

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


User avatar
0
hardip created
  • 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 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I will check it.

  • User Avatar
    0
    liangshiwei created
    Support Team 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 created
    Support Team Fullstack Developer

    Your ticket was refunded.

  • User Avatar
    0
    hardip created

    Applied the changes as recommended, but still facing issue

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

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

  • User Avatar
    0
    hardip created

    hardip.dodiya@faciletechbolab.com

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Shared

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    It looks the email address is incorrect

  • User Avatar
    0
    hardip created

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

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Shared

  • User Avatar
    0
    hardip created

    Thank you.

  • User Avatar
    0
    hardip created

    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 created
    Support Team Fullstack Developer

    Hi,

    Please check your rabbitmq server to make sure it is available

  • User Avatar
    0
    hardip created

    Hi,

    Just using the

    [DependsOn( typeof(AbpEventBusRabbitMqModule), )]

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

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09