Skip to content

Commit

Permalink
Add autocompte="off" to secret input fields
Browse files Browse the repository at this point in the history
This was done for the safe-store recovery token authentication form and
the verify sms challenge forms.

See: https://www.pivotaltracker.com/story/show/185006156
  • Loading branch information
MKodde authored and phavekes committed Jun 2, 2023
1 parent 7c450d2 commit 5381fba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$builder->add('secret', PasswordType::class, [
'label' => 'ss.form.ss_authenticate_safe_store_type.text.secret',
'required' => true,
'attr' => ['autofocus' => true],
'attr' => [
'autofocus' => true,
'autocomplete' => 'off'
],
]);
$builder->add('verifySecret', SubmitType::class, [
'label' => 'ss.form.ss_authenticate_safe_store_type.button.continue',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$builder->add('challenge', TextType::class, [
'label' => 'ss.form.ss_verify_sms_challenge.text.challenge',
'required' => true,
'attr' => ['autofocus' => true],
'attr' => [
'autofocus' => true,
'autocomplete' => 'off',
],
'label_attr' => ['class' => 'pull-right'],
]);
$builder->add('resendChallenge', AnchorType::class, [
Expand Down

0 comments on commit 5381fba

Please sign in to comment.