This commit is contained in:
@@ -37,7 +37,7 @@ class UserCrudController extends AbstractCrudController
|
||||
->allowMultipleChoices(true);
|
||||
|
||||
|
||||
yield FormField::addPanel('Set password')->setIcon('fa fa-key');
|
||||
yield FormField::addFieldset('Set password')->setIcon('fa fa-key');
|
||||
|
||||
$fieldPassword = Field::new('plainPassword', 'New password')
|
||||
->hideOnIndex()
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace App\Entity;
|
||||
|
||||
use App\Enum\UserRoleEnum;
|
||||
use App\Repository\UserRepository;
|
||||
use Deprecated;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
@@ -120,6 +121,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
/**
|
||||
* @see UserInterface
|
||||
*/
|
||||
#[Deprecated("Not used after Symfony 7.3")]
|
||||
public function eraseCredentials(): void
|
||||
{
|
||||
// If you store any temporary, sensitive data on the user, clear it here
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
|
||||
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
|
||||
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
|
||||
{% if ea.crud.currentAction == 'detail' %}
|
||||
{% if ea().crud.currentAction == 'detail' %}
|
||||
<div class="field-icon-div d-flex gap-3">
|
||||
<span title="{{ field.value }}">{{ field.formattedValue|raw }}</span>
|
||||
<div class="badge text-bg-secondary">
|
||||
|
||||
Reference in New Issue
Block a user