From 3726573f4c5b44314cc41d2b6bbe60c6876c0873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Thu, 18 Jun 2020 16:18:41 +0200 Subject: [PATCH] MAPG-152 save modified user to session --- src/Controller/UserController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 51b823d..f60f809 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -58,6 +58,8 @@ class UserController implements ISecured $modify->fill($user->toArray()); $modify->save(); + $this->request->session()->set('user', $user); + $data = ['success' => true]; return new JsonContent($data); }