lonnieezell / Bonfire2

CodeIgniter 4-based application skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type Error on saving Groups

vallstn opened this issue · comments

I am getting the following error while save the user

TypeError

Argument 1 passed to CodeIgniter\Shield\Entities\User::syncGroups() must be of the type string, array given, called in E:\app\xampp\htdocs\bonfire\vendor\lonnieezell\bonfire\src\Users\Controllers\UserController.php on line 204

I am using XAMPP 2.4.53 (Win64) OpenSSL/1.1.1n PHP/7.4.29 and the post data is

$_POST
Key Value
csrf_token_aedmis 56b463c7cfdfe42397822f488cd71152
id 2
email xxx@gmail.com
username yyy
first_name
last_name
groups

Array
(
[0] => user
)

Am i missing any configuration?

Pull Request #194 - Fix Type Error when Saving a User #194 solves the issue. Thanks.