Fix arguments for UsernamePasswordToken - refs BT#21562

pull/5420/head
Angel Fernando Quiroz Campos 7 months ago
parent ec2cc650a6
commit e97d41111a
  1. 2
      public/main/auth/inscription.php

@ -1142,7 +1142,7 @@ if ($form->validate()) {
$providerKey = 'main';
$roles = $userEntity->getRoles();
$token = new UsernamePasswordToken($userEntity, null, $providerKey, $roles);
$token = new UsernamePasswordToken($userEntity, $providerKey, $roles);
$container->get(ContainerHelper::class)->getTokenStorage()->setToken($token);
$container->get('session')->set('_security_' . $providerKey, serialize($token));

Loading…
Cancel
Save