Show data for manual setup of the google authenticator.

This commit is contained in:
Jan Böhmer 2019-12-24 16:07:22 +01:00
parent 25105ba7d4
commit 8c5cf6f9e0
2 changed files with 17 additions and 1 deletions

View file

@ -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()]
]);