stormpath / stormpath-lumen

Build simple, secure web applications with Stormpath and Lumen
Other
10 stars 1 forks source link

accountStores array response incorrectly structured? #2

Closed JunkMyFunk closed 8 years ago

JunkMyFunk commented 8 years ago

I receive an error from the Stormpath AngularJS login controller when integrating with the Stormpath Lumen API. The error from Angular is Cannot read property 'providerId' of undefined

When examining the response generated by LoginController::respondWithForm() method, it seems the accountStores array contains an unexpected nested array.

Actual response: actual response

Expected response (without nested array) expected response

Problem appears to be caused at src/Http/Controllers/LoginController.php:138 where the get from cache is wrapped in an array.

bretterer commented 8 years ago

Thank you for this report. I see the PR that you submitted, I am going to modify a few items in that that relate to https://github.com/stormpath/stormpath-laravel/pull/48. This will be merged in soon.

bretterer commented 8 years ago

Resolved in PR #3

Will be released in 0.1.4