directus / directus/directus

Unhelpful error on weak password validation

Open
#27,016 3 comments 0 reactions 0 assignees View on GitHub
Improvement Low Impact Med Reach Studio UX / DX
Dominant language
TypeScript
Stars
37.9k
Forks
4.9k
Avg merge
3d 23h
Merged PRs (30d)
37

Description

### Describe the Bug

When attempting to create a new user with a weak password that does not pass the password strength validation, the displayed error message of "Validation failed" is unhelpful.

Image

A new error should be introduced similar to that of: https://github.com/directus/directus/pull/26971 in order to allow for a more descriptive message as well as allowing for translation of the associated string.

### To Reproduce

- Set Auth Password Policy to "strong" in settings
- Invite a user
- Navigate to create user password flow from email link
- Enter a weak password
- Non-specific error is shown

### Directus Version

v11.17.1

### Hosting Strategy

Self-Hosted (Docker Image)

### Database

NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.