Skip to content

Cannot change password when maxPasswordHistory is 1 #4918

Closed
@akiowata

Description

@akiowata

Issue Description

When I set passwordPolicy of maxPasswordHistory: 1,
reset password doesn't work at last step (after inputting a new password).

I found the process below has infinite loop.

while (oldPasswords.length > this.config.passwordPolicy.maxPasswordHistory - 2) {

Steps to reproduce

  1. Set passwordPolicy of maxPasswordHistory as 1.
  2. Try resetting password.

Expected Results

That it works.

Actual Outcome

No responce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions