Merge pull request #8542 from ATM-Marc/FIX_user_autocomplete

FIX: weird password autocompletion in Google Chrome (issue #8479)
This commit is contained in:
Laurent Destailleur 2018-04-11 13:22:42 +02:00 committed by GitHub
commit c2eb2bf10e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1990,7 +1990,7 @@ else
}
else if ($caneditpassword)
{
$text='<input size="12" maxlength="32" type="password" class="flat" name="password" value="'.$object->pass.'" autocomplete="off">';
$text='<input size="12" maxlength="32" type="password" class="flat" name="password" value="'.$object->pass.'" autocomplete="new-password">';
if ($dolibarr_main_authentication && $dolibarr_main_authentication == 'http')
{
$text=$form->textwithpicto($text,$langs->trans("DolibarrInHttpAuthenticationSoPasswordUseless",$dolibarr_main_authentication),1,'warning');