mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 07:25:32 +01:00
Disable username and token field on password reset controller
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user