mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-11 09:25:25 +00:00
commit
e9a4231d4f
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