mirror of
https://github.com/wallabag/wallabag.git
synced 2024-10-31 22:28:54 +00:00
Fix bad key matching
I didn't try to find which package introduced a BC (might be user-bundle or jms serializer)
This commit is contained in:
parent
e99be2c134
commit
4ac0e65963
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class UserRestController extends WallabagRestController
|
|||
$view->setFormat('json');
|
||||
|
||||
// handle errors in a more beautiful way than the default view
|
||||
$data = json_decode($this->handleView($view)->getContent(), true)['children'];
|
||||
$data = json_decode($this->handleView($view)->getContent(), true)['errors']['children'];
|
||||
$errors = [];
|
||||
|
||||
if (isset($data['username']['errors'])) {
|
||||
|
|
Loading…
Reference in a new issue