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
However it works if passing it as a string via URL parameter, which can get quite messy if dealing with more meta.
I've managed to fix it by directly editing RegisterUserService.php (around line 77) and checking if
$this->request['user_meta'] is an array before running json_decode.
Environment
Question
Answer
PHP version
7.4.10
WordPress version
5.9
Simple-JWT-Login plugin version
3.4.2
Additional Context (optional)
The text was updated successfully, but these errors were encountered:
First of all, thanks for a great plugin!
Bug Description
Passing "user_meta" in POST body as JSON doesn't work, for example:
"user_meta": {
"billing_first_name": "Billy-Bob",
"billing_last_name": "Thornton"
}
However it works if passing it as a string via URL parameter, which can get quite messy if dealing with more meta.
I've managed to fix it by directly editing RegisterUserService.php (around line 77) and checking if
$this->request['user_meta'] is an array before running json_decode.
Environment
Additional Context (optional)
The text was updated successfully, but these errors were encountered: