diff --git a/misc/docker/Dockerfile b/misc/docker/Dockerfile index 512a276..046fd27 100644 --- a/misc/docker/Dockerfile +++ b/misc/docker/Dockerfile @@ -7,9 +7,9 @@ RUN echo "* * * * * /app/bin/console app:Cron --env=prod" >> /var/spool/cron/cro WORKDIR /app COPY . . +RUN rm -rf /app/public/uploads/* # Installation des dépendances composer - RUN composer install --no-interaction RUN mkdir -p /app/public/uploads diff --git a/src/Controller/ConfigController.php b/src/Controller/ConfigController.php index 162a554..bb46298 100755 --- a/src/Controller/ConfigController.php +++ b/src/Controller/ConfigController.php @@ -13,7 +13,7 @@ use App\Form\ConfigType as Form; class ConfigController extends AbstractController { private $data = "config"; - private $route = "app_config"; + private $route = "app_admin_config"; private $render = "Config/"; private $entity = "App:Config"; @@ -110,7 +110,7 @@ class ConfigController extends AbstractController $data=$em->getRepository($this->entity)->findOneBy(["id"=>$id,"user"=>$this->getUser()]); // Création du formulaire - $form = $this->createForm(Form::class,$data,array("mode "=>"update","id"=>$data->getId(),"type"=>$data->getType(),"required"=>$data->getRequired())); + $form = $this->createForm(Form::class,$data,array("mode"=>"update","id"=>$data->getId(),"type"=>$data->getType(),"required"=>$data->getRequired())); // Récupération des data du formulaire $form->handleRequest($request); diff --git a/templates/Home/login.html.twig b/templates/Home/login.html.twig index 84beedc..178ed06 100755 --- a/templates/Home/login.html.twig +++ b/templates/Home/login.html.twig @@ -34,6 +34,7 @@ {% block localjavascript %} $(document).ready(function() { + {% if app.user %} window.location.href = "{{ path("app_home")}}"; {% endif %} $("#username").focus(); }); {% endblock %} \ No newline at end of file