Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #2112/0ca835c1 backport][stable-4.4] Use GALAXY_MINIMUM_PASSWORD_LENGTH in user-form help message #2182

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Jun 6, 2022

This is a backport of PR #2112 as merged into master (0ca835c).

API parts come from ansible/galaxy_ng#1253,
we have a new GALAXY_MINIMUM_PASSWORD_LENGTH setting coming from the API, defaults to null so we're still providing the 9 default.

When overidden, the prompt will show the right number now.

20220523135200

(The actual on save validation still happens server side, that already provides the right message.)

Fixes https://issues.redhat.com/browse/AAH-1573


note that MinimumPasswordLengthValidator just uses python's len(), so the number actually means codepoints, not characters .. so this will actually still allow 5 character passwords if each character has accents done through a modifier .. but we shouldn't expect users to know about Unicode.

* Show the proper MINIMUM PASSWORD LENGTH in UI

Issue: AAH-1573

* user-form: use GALAXY_MINIMUM_PASSWORD_LENGTH from settings, still default to 9

(cherry picked from commit 0ca835c)
@himdel himdel merged commit ac28a27 into stable-4.4 Jun 6, 2022
@himdel himdel deleted the patchback/backports/stable-4.4/0ca835c16161972397c791f1c571dfdf0a0efa61/pr-2112 branch June 6, 2022 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant