MAPG-152 save modified user to session

This commit is contained in:
Bence Pőcze 2020-06-18 16:18:41 +02:00
parent efccb2dcc5
commit 3726573f4c

View File

@ -58,6 +58,8 @@ class UserController implements ISecured
$modify->fill($user->toArray()); $modify->fill($user->toArray());
$modify->save(); $modify->save();
$this->request->session()->set('user', $user);
$data = ['success' => true]; $data = ['success' => true];
return new JsonContent($data); return new JsonContent($data);
} }