Base solution for your next web application
Open Closed

Password Complexity not working #5494


User avatar
0
joe704la created

I am on the latest zero version. And the Angular version. Password complexity isn't working. It used to work and I just recently updated to 5.6.2. Has anyone else had this issue?


6 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    The most recent version has not modified the password complexity related functions.

    Do you see if there is a problem with the password complexity setting?

  • User Avatar
    0
    joe704la created

    I realized its actually with reset password. When you mark a user for change password on next login. The password complexity isn't working. Everywhere else is fine.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @joe704la have you tried on a raw v5.6.2 download ?

  • User Avatar
    0
    joe704la created

    Yes I have. Same issue. I even did it on a demo on the aspnet zero site.

  • User Avatar
    0
    maliming created
    Support Team

    <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/10aaf4df7ec6d1599096273aa276026730c0088f/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/Authorization/Accounts/AccountAppService.cs#L133">https://github.com/aspnetzero/aspnet-ze ... ce.cs#L133</a>

    UserManager's Update method does not perform password verification. So we have to change the password using UserManager's ChangePassword.

    <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1558">https://github.com/aspnetzero/aspnet-ze ... ssues/1558</a>

    You can temporarily use

    await UserManager.ChangePasswordAsync(user, input.Password);
    

    UI also needs to be updated synchronously.

  • User Avatar
    0
    joe704la created

    I actually did figure that out. I made a change to both UI and backend. I should have updated it here. Tha k you.