]> git.mxchange.org Git - friendica.git/commitdiff
Remove autocomplete from 2FA code input fields
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Dec 2020 05:25:21 +0000 (00:25 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Dec 2020 05:25:21 +0000 (00:25 -0500)
src/Module/Security/TwoFactor/Verify.php
src/Module/Settings/TwoFactor/Verify.php

index 2e327fd9e98d118538662e8ae5f2b0ea60456f0a..d7a44f0c56ab7f72376e60d3272da34ca20ad32b 100644 (file)
@@ -82,7 +82,7 @@ class Verify extends BaseModule
                        '$errors_label'     => DI::l10n()->tt('Error', 'Errors', count(self::$errors)),
                        '$errors'           => self::$errors,
                        '$recovery_message' => DI::l10n()->t('Don’t have your phone? <a href="%s">Enter a two-factor recovery code</a>', '2fa/recovery'),
-                       '$verify_code'      => ['verify_code', DI::l10n()->t('Please enter a code from your authentication app'), '', '', DI::l10n()->t('Required'), 'autofocus placeholder="000000"', 'tel'],
+                       '$verify_code'      => ['verify_code', DI::l10n()->t('Please enter a code from your authentication app'), '', '', DI::l10n()->t('Required'), 'autofocus autocomplete="off" placeholder="000000"', 'tel'],
                        '$verify_label'     => DI::l10n()->t('Verify code and complete login'),
                ]);
        }
index f427fdfe4289b061dfd97316bf39f02c5b3e0666..423c341ecb438136f3ff2a7ff8e77b493e43b2a5 100644 (file)
@@ -138,7 +138,7 @@ class Verify extends BaseSettings
                        '$holder'             => $holder,
                        '$secret'             => $secret,
 
-                       '$verify_code'  => ['verify_code', DI::l10n()->t('Please enter a code from your authentication app'), '', '', DI::l10n()->t('Required'), 'autofocus placeholder="000000"'],
+                       '$verify_code'  => ['verify_code', DI::l10n()->t('Please enter a code from your authentication app'), '', '', DI::l10n()->t('Required'), 'autofocus autocomplete="off" placeholder="000000"'],
                        '$verify_label' => DI::l10n()->t('Verify code and enable two-factor authentication'),
                ]);
        }