Open Closed

Bug not fixed - Should change password on next login should enforce password to be different #5584


User avatar
0
mkinc created

Bug raised here https://support.abp.io/QA/Questions/5126/Bug---Should-change-password-on-next-login-should-enforce-password-to-be-different should have been fixed in 'the preview version for 7.3' but the issue is replicable both in v7.3.2 and the ABP commercial v7.4.0 as of 14/8/23.

  • ABP Framework version: Replicable on ABP commercial demo on 14/8/23: ABP v7.4.0. Updated on 2023-08-02 12:30 . Angular Version v16.0.6
  • UI Type: Angular
  • Database System: Unknown
  • Tiered (for MVC) or Auth Server Separated (for Angular): Unknown

Please let us know when this will be fixed + refund the question. Cheers.


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We will check it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We will fix it in the next patch version. your ticket was refunded.

    This is a temporary solution:

    [ExposeServices(typeof(ChangePasswordModel))]
    public class MyChangePasswordModel : ChangePasswordModel
    {
        public async override Task<IActionResult> OnPostAsync()
        {
            if (CurrentPassword == NewPassword) 
            {
                Alerts.Warning(L["NewPasswordSameAsOld"]);
                return Page();
            }
    
            return await base.OnPostAsync();
        }
    }
    
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11