Commit 0fefb182 authored by Mat's avatar Mat

bizarre, le nom de l'avatar n'a pas d'extension, juste un hash

à tester/réparer
parent 28a2514c
......@@ -16,6 +16,7 @@
!/var/SymfonyRequirements.php
/vendor/
/web/bundles/
/web/assets/
/config/jwt/
## ?? GIT or NOT GIT ??
......
File mode changed from 100644 to 100755
......@@ -45,7 +45,7 @@ class ChatController extends Controller
{
// traitement de l'avatar, avac un nom unique
$filename = md5(uniqid() . $user->getFile()->getClientOriginalName());
$filename = md5(uniqid() . '.' . $user->getFile()->guessExtension());
$user->getFile()->move(
$this->getParameter('avatar_directory'),
$filename
......@@ -78,7 +78,7 @@ class ChatController extends Controller
{
$tokenManager = $this->get('lexik_jwt_authentication.jwt_manager');
$token = $tokenManager->create($this->getUser());
dump($token);
//dump($token);
return $this->render('@Socket/Chat/message.html.twig', array(
'token' => $token
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment