Complete profile image, password update functionality

This commit is contained in:
2025-01-03 15:31:07 +00:00
parent 8d97ab0345
commit ea322dc2ac
3 changed files with 52 additions and 0 deletions

View File

@ -12,6 +12,7 @@ use App\Form\UserFormType;
use App\Libs\Breadcrumb;
use App\Libs\NavList;
use App\Repository\UserRepository;
use DateTime;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
@ -145,6 +146,7 @@ class AdminController extends AbstractController
->setRate($form->get('rate')->getData())
->setLevel($form->get('level')->getData())
->setCompany($admin->getCompany())
->setPasswordChanged(new DateTime())
;
if ($form->get('imageName')->getData()) {