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

Bug: spark cli does not assign a default group to newly created user #998

Open
bgeneto opened this issue Jan 12, 2024 · 0 comments · May be fixed by #999
Open

Bug: spark cli does not assign a default group to newly created user #998

bgeneto opened this issue Jan 12, 2024 · 0 comments · May be fixed by #999
Labels
bug Something isn't working

Comments

@bgeneto
Copy link
Contributor

bgeneto commented 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

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

@bgeneto bgeneto added the bug Something isn't working label Jan 12, 2024
@bgeneto 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
@datamweb datamweb linked a pull request Jan 12, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant