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
Which operating systems have you tested for this bug?
Windows, Linux
Which server did you use?
apache
Database
MariaDB 10.2
Did you customize Shield?
No
What happened?
While creating a new user from the cli, the php spark shield:user create command does not assign any group to the user (if not using the group option/parameter).
I think the command should assign a default group to the newly created user by using the following setting: config(\Config\AuthGroups::class)->defaultGroup in order to avoid possible permissions issues at the first login attempt.
Steps to Reproduce
php spark shield:user create
Username : bgeneto
Email :[email protected]
Password :*******
Password confirmation :*******
User "bgeneto" created
Expected Output
A corresponding line in the auth_groups_users table using the default group from config(\Config\AuthGroups::class)->defaultGroup.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
bgeneto
changed the title
Bug: spark cli does not assign a default group to the newly created user
Bug: spark cli does not assign a default group to newly created user
Jan 12, 2024
PHP Version
8.2.14
CodeIgniter4 Version
4.4.4
Shield Version
dev
Which operating systems have you tested for this bug?
Windows, Linux
Which server did you use?
apache
Database
MariaDB 10.2
Did you customize Shield?
No
What happened?
While creating a new user from the cli, the
php spark shield:user create
command does not assign any group to the user (if not using the group option/parameter).I think the command should assign a default group to the newly created user by using the following setting:
config(\Config\AuthGroups::class)->defaultGroup
in order to avoid possible permissions issues at the first login attempt.Steps to Reproduce
Expected Output
A corresponding line in the
auth_groups_users
table using the default group fromconfig(\Config\AuthGroups::class)->defaultGroup
.Anything else?
No response
The text was updated successfully, but these errors were encountered: