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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

15 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    I will check it.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    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();
        }
    }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Your ticket was refunded.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    hardip created

    Applied the changes as recommended, but still facing issue

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    hardip created

    hardip.dodiya@faciletechbolab.com

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Shared

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    It looks the email address is incorrect

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    hardip created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Shared

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    hardip created

    Thank you.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Please check your rabbitmq server to make sure it is available

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    hardip created

    Hi,

    Just using the

    [DependsOn( typeof(AbpEventBusRabbitMqModule), )]

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.