Disable username and token field on password reset controller

This commit is contained in:
Jan Böhmer 2023-02-11 22:04:49 +01:00
parent 03e52bf598
commit 266ffe3fec

View file

@ -140,9 +140,11 @@ class SecurityController extends AbstractController
$builder = $this->createFormBuilder($data);
$builder->add('username', TextType::class, [
'label' => $this->translator->trans('pw_reset.username'),
'disabled' => true,
]);
$builder->add('token', TextType::class, [
'label' => $this->translator->trans('pw_reset.token'),
'disabled' => true,
]);
$builder->add('new_password', RepeatedType::class, [
'type' => PasswordType::class,