You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a custom registration validation with no username requirement.
Then try to create a new user via CLI command.
Expected Output
Create a user without the need to supply a username.
Anything else?
The validation rules for CLI creation get pulled from this: vendor/codeigniter4/shield/src/Commands/User.php:221:$rules = $validationRules->getRegistrationRules(); but on line 245 it sets it like so
PHP Version
8.3.3
CodeIgniter4 Version
4.4.6
Shield Version
1.0.2
Which operating systems have you tested for this bug?
macOS, Linux
Which server did you use?
apache
Database
MySQL 5.7, 10.5.22-MariaDB
Did you customize Shield?
I customized a lot of things primarily i disabled the username requirement for registration.
What happened?
When I try to create a new user via the CLI command
spark shield:user create
I get this error:Steps to Reproduce
Create a custom registration validation with no username requirement.
Then try to create a new user via CLI command.
Expected Output
Create a user without the need to supply a username.
Anything else?
The validation rules for CLI creation get pulled from this: vendor/codeigniter4/shield/src/Commands/User.php:221:
$rules = $validationRules->getRegistrationRules();
but on line 245 it sets it like soThe text was updated successfully, but these errors were encountered: