Add missing CSRF check on avatar upload form

This commit is contained in:
Frédéric Guillot
2018-01-29 13:14:33 -08:00
parent 357316cdf9
commit 90984d6bb9
2 changed files with 2 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ class AvatarFileController extends BaseController
*/
public function upload()
{
$this->checkCSRFParam();
$user = $this->getUser();
if (! $this->avatarFileModel->uploadImageFile($user['id'], $this->request->getFileInfo('avatar'))) {