Use same way to obfuscate key than password

This commit is contained in:
Laurent Destailleur 2015-11-22 14:21:12 +01:00
parent c7447b0899
commit 3f87b30327

View File

@ -1286,8 +1286,7 @@ else
if(! empty($conf->api->enabled) && $user->admin) {
print '<tr><td>'.$langs->trans("ApiKey").'</td>';
print '<td>';
if (! empty($object->api_key))
print $langs->trans("Hidden");
if (! empty($object->api_key)) print preg_replace('/./','*',$object->api_key);
print '</td></tr>';
}