Skip to content

[6.3] [cli] AddUserCommand with password validation - #48361

Draft
alikon wants to merge 1 commit into
joomla:6.3-devfrom
alikon:patch-4
Draft

[6.3] [cli] AddUserCommand with password validation#48361
alikon wants to merge 1 commit into
joomla:6.3-devfrom
alikon:patch-4

Conversation

@alikon

@alikon alikon commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Updated the AddUserCommand to include password confirmation like in site/admin application.

Pull Request resolves #37629.

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

use the site/admin validation in cli

Testing Instructions

create a user using the cli
php cli/joomla.php user:add

Actual result BEFORE applying this Pull Request

no validation on password

Expected result AFTER applying this Pull Request

password validation as per site/admin form validation

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Refactor password handling in AddUserCommand. Added getPasswordFromOption method for password input and validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants