diff --git a/src/Form/TFASettingsType.php b/src/Form/TFASettingsType.php index ae1d9326..fa9da818 100644 --- a/src/Form/TFASettingsType.php +++ b/src/Form/TFASettingsType.php @@ -20,7 +20,7 @@ class TFASettingsType extends AbstractType { $builder->add('google_confirmation', TextType::class, [ 'mapped' => false, - 'attr' => ['maxlength' => '6', 'minlength' => '6', 'pattern' => '\d*'], + 'attr' => ['maxlength' => '6', 'minlength' => '6', 'pattern' => '\d*', 'autocomplete' => 'off'], 'constraints' => [new ValidGoogleAuthCode()] ]); diff --git a/templates/Users/_2fa_settings.html.twig b/templates/Users/_2fa_settings.html.twig index 19b9d23b..f24ec557 100644 --- a/templates/Users/_2fa_settings.html.twig +++ b/templates/Users/_2fa_settings.html.twig @@ -26,10 +26,26 @@
  • {% trans %}tfa_google.step.download{% endtrans %}
  • {% trans %}tfa_google.step.scan{% endtrans %}
  • {% trans %}tfa_google.step.input_code{% endtrans %}
  • +
  • {% trans %}tfa_google.step.download_backup{% endtrans %}
  • +
    + +
    +
    +

    {% trans %}tfa_google.manual_setup.type{% endtrans %}: TOTP

    +

    {% trans %}tfa_google.manual_setup.username{% endtrans %}: {{ tfa_google.username }}

    +

    {% trans %}tfa_google.manual_setup.secret{% endtrans %}: {{ tfa_google.secret }}

    +

    {% trans %}tfa_google.manual_setup.digit_count{% endtrans %}: 6

    + +
    +
    +
    + {{ form_row(tfa_form.google_confirmation) }}