create a user using the cli
php cli/joomla.php user:add
follow the questions to create a user.
Add user
========
Please enter a username:
> ss
Please enter a name (full name of user):
> ss
Please enter an email address:
> ss@ss
Please enter a password:
> ss
minimum validation rules apply
possible to create a user with a 1 character password
Labels |
Added:
No Code Attached Yet
|
not sure if I care if it follows the exact site defined rules or just something a little more than just a single character
That's what happens when @joomla/security team does no work for 2 years... #29817
Labels |
Added:
bug
|
Yes looks like there is no validation at all here: https://github.com/joomla/joomla-cms/blob/4.1-dev/libraries/src/Console/AddUserCommand.php#L130
Not sure whether it makes sense to just hardcode the validation there but maybe better implement the checks for the existing validation rules and XML files. Or is there a reason to specificly not implement the xml validation rules via the CLI?