]> git.mxchange.org Git - friendica.git/commitdiff
Prevent unwarranted password manager auto-completion in settings form fields
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 23 Mar 2022 23:23:00 +0000 (19:23 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 23 Mar 2022 23:43:25 +0000 (19:43 -0400)
mod/settings.php

index 642229de0b578428bbb9c58c2cf86b5d63519be9..b23bf654f4b58607ef7f7f74aec7b3c712d0836b 100644 (file)
@@ -767,17 +767,17 @@ function settings_content(App $a)
                '$nickname_block' => $prof_addr,
 
                '$h_pass'       => DI::l10n()->t('Password Settings'),
-               '$password1'=> ['password', DI::l10n()->t('New Password:'), '', DI::l10n()->t('Allowed characters are a-z, A-Z, 0-9 and special characters except white spaces, accentuated letters and colon (:).')],
-               '$password2'=> ['confirm', DI::l10n()->t('Confirm:'), '', DI::l10n()->t('Leave password fields blank unless changing')],
-               '$password3'=> ['opassword', DI::l10n()->t('Current Password:'), '', DI::l10n()->t('Your current password to confirm the changes')],
-               '$password4'=> ['mpassword', DI::l10n()->t('Password:'), '', DI::l10n()->t('Your current password to confirm the changes of the email address')],
+               '$password1'=> ['password', DI::l10n()->t('New Password:'), '', DI::l10n()->t('Allowed characters are a-z, A-Z, 0-9 and special characters except white spaces, accentuated letters and colon (:).'), false, 'autocomplete="off"'],
+               '$password2'=> ['confirm', DI::l10n()->t('Confirm:'), '', DI::l10n()->t('Leave password fields blank unless changing'), false, 'autocomplete="off"'],
+               '$password3'=> ['opassword', DI::l10n()->t('Current Password:'), '', DI::l10n()->t('Your current password to confirm the changes'), false, 'autocomplete="off"'],
+               '$password4'=> ['mpassword', DI::l10n()->t('Password:'), '', DI::l10n()->t('Your current password to confirm the changes of the email address'), false, 'autocomplete="off"'],
                '$oid_enable' => (!DI::config()->get('system', 'no_openid')),
                '$openid'       => $openid_field,
                '$delete_openid' => ['delete_openid', DI::l10n()->t('Delete OpenID URL'), false, ''],
 
                '$h_basic'      => DI::l10n()->t('Basic Settings'),
-               '$username' => ['username',  DI::l10n()->t('Full Name:'), $username, ''],
-               '$email'        => ['email', DI::l10n()->t('Email Address:'), $email, '', '', '', 'email'],
+               '$username' => ['username',  DI::l10n()->t('Full Name:'), $username, '', false, 'autocomplete="off"'],
+               '$email'        => ['email', DI::l10n()->t('Email Address:'), $email, '', '', 'autocomplete="off"', 'email'],
                '$timezone' => ['timezone_select' , DI::l10n()->t('Your Timezone:'), Temporal::getTimezoneSelect($timezone), ''],
                '$language' => ['language', DI::l10n()->t('Your Language:'), $language, DI::l10n()->t('Set the language we use to show you friendica interface and to send you emails'), $lang_choices],
                '$defloc'       => ['defloc', DI::l10n()->t('Default Post Location:'), $defloc, ''],