Skip to content

Commit

Permalink
Merge pull request PrestaShop#35058 from ShaiMagal/autocomplete-mail-…
Browse files Browse the repository at this point in the history
…prevent

Disable autofill of password for SMTP
  • Loading branch information
matthieu-rolland authored Jan 18, 2024
2 parents c5c371f + 3383aa2 commit 7d9cb49
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'empty_data' => '',
'label' => $this->trans('SMTP password', 'Admin.Advparameters.Feature'),
'help' => $this->trans('Leave blank if not applicable.', 'Admin.Advparameters.Help'),
/* Some browsers (for example Google Chrome) are totally ignoring "off" value, so we use "new-password" - which is working well for this purpose */
'attr' => [
'autocomplete' => 'new-password',
],
])
->add('encryption', ChoiceType::class, [
'choices' => [
Expand Down

0 comments on commit 7d9cb49

Please sign in to comment.