dreamsoftin / flutter_wordpress

Flutter WordPress API
https://pub.dartlang.org/packages/flutter_wordpress
MIT License
198 stars 122 forks source link

Fix wp create user #44

Open afiq90 opened 4 years ago

afiq90 commented 4 years ago

Currently, I got this error when using current implementation. This is caused by not handling createUser method request properly and the User model toJson method deserialization not matching.

Screen Shot 2020-06-23 at 12 19 09 AM

What I did : Handled createUser by using http, handling deserialization properly and making roles paramater as optional.

tested and working as expected :

Screen Shot 2020-06-23 at 12 52 27 AM
SachinGanesh commented 4 years ago

Please resolve the conflicts

afiq90 commented 4 years ago

Please resolve the conflicts

done