Problem/Motivation

Hi,
I added 2 lenght related policies:
The last one "constraint" is "Password character length of at most 80 characters"
But the "status" for that is always when refreshing the page
"Fail - New role was added or existing password policy changed. Please update your password."
That text content is unrelated to a "lenght" policy.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Youcanlearnit created an issue. See original summary.

Vighneshh made their first commit to this issue’s fork.

vighneshh’s picture

Assigned: Unassigned » vighneshh

will work on it

vighneshh’s picture

Assigned: vighneshh » Unassigned
Status: Active » Needs review
StatusFileSize
new12.91 KB

when i checked i am able to see this message which is correct i think.
Maybe try clearing cache once and then check.

Youcanlearnit’s picture

Hi,

The problem comes using the anonymous user while registering and providing a password, (when you add a second lenght constraint in the same policy)

  1. create a password policy "lenght"
  2. add 2 constraints: 1. password character lenght "minimum lenght" add second password character lenght "maximum lenght"
  3. save
  4. log out, try to register to the site and enter password. Under the password box there are these:
lenght 	Fail - Password length must be at least 8 characters.
lenght 	Fail - New role was added or existing password policy changed. Please update your password.

where the text:" Fail - New role was added or existing password policy changed. Please update your password."
even clearing caches.

sophiavs’s picture

Assigned: Unassigned » sophiavs
Status: Needs review » Needs work

Hi i'll try to work on that

sophiavs’s picture

Assigned: sophiavs » Unassigned
Status: Needs work » Needs review
StatusFileSize
new740 bytes

I put a validation to not show the error message when the user is anonymous

  • 029a696 committed on 8.x-3.x
    Issue #3306732 by Vighneshh, sophiavs, Youcanlearnit: Wrong message
    
paulocs’s picture

Status: Needs review » Fixed

Thanks!

paulocs’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.