Added spark command to manage users#568
Conversation
|
Hi @datamweb, I signed my commit. Thanks for the heads-up. |
|
Hello @robertogerola . How to do this? git branch feat-add-users-manage-whit-cliHow to do this?
P:\Bug\project-root>php spark shield:user
CodeIgniter v4.2.10 Command Line Tool - Server Time: 2022-12-24 08:47:09 UTC-06:00
P:\Bug\project-root>php spark shield:user list
CodeIgniter v4.2.10 Command Line Tool - Server Time: 2022-12-24 08:54:42 UTC-06:00
Id User
21 datamweb (pooya@yahoo.com)
27 Kenji (kenji@ci.dv)+----+--------------------------+---------------------+--------+
| ID | Title | Updated At | Active |
+----+--------------------------+---------------------+--------+
| 7 | A great item title | 2017-11-16 10:35:02 | 1 |
| 8 | Another great item title | 2017-11-16 13:46:54 | 0 |How do you do it? At each stage you may face questions and challenges. Don't worry, try again if you couldn't send a message. |
|
Thanks, I think it is better if I create a new branch and close this PR indeed. I'd like to work in the near future on a web backend with the same features (CRUD interface on users) and having everything under the same main branch (develop) will create a lot of confusion and wouldn't be cleanly manageable.
|
If you mean sending PR to create Admin panel. You should know that Shield is an Authentication and Authorization , not a Admin panel standby system. So we want to keep it that way. But if you want to help Codeigniter community, you can share it with the community through discussions after finishing the work. This is my personal opinion, other members may have a different opinion. |


Supersedes #567
./spark shield:user
Valid arguments : 'create', 'activate', 'deactivate', 'changename', 'changeemail', 'delete', 'password', 'list', 'addgroup', 'removegroup'
Valid options :
'-i' => 'User id'
'-u' => 'User name'
'-e' => 'User email'
'-nu' => 'New username'
'-ne' => 'New email'
'-g' => 'Group name'