Use same way to obfuscate key than password
This commit is contained in:
parent
c7447b0899
commit
3f87b30327
@ -1286,8 +1286,7 @@ else
|
|||||||
if(! empty($conf->api->enabled) && $user->admin) {
|
if(! empty($conf->api->enabled) && $user->admin) {
|
||||||
print '<tr><td>'.$langs->trans("ApiKey").'</td>';
|
print '<tr><td>'.$langs->trans("ApiKey").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if (! empty($object->api_key))
|
if (! empty($object->api_key)) print preg_replace('/./','*',$object->api_key);
|
||||||
print $langs->trans("Hidden");
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user