mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-15 09:57:41 +01: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
@ -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 New Issue
Block a user