Password policy should be after the password field

Created on 15 February 2023, over 2 years ago

Problem/Motivation

The password policy appears at or near the bottom, underneath roles and status. It should be under the password field. I'm not sure if I'm misunderstanding something here, it's weird nobody else reported this before now.

Steps to reproduce

Install and configure the module. I have observed this on every site I've used the module on.

Proposed resolution

The other form elements are widgets, and Drupal sets their weight to the order defined in the form display divided by 1000, which means the weights are 0.001, 0.002 etc.

In an ideal world, this would be fixed by declaring the password policy as a widget so that it can be re-ordered or removed from the form display by the user.

A short term fix is to change the weight in password_policy_form_user_form_alter(). It's currently 4 and should be 0.003.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Rob230

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024