Skip to content

Commit

Permalink
Fix hash for ping
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 20, 2019
1 parent cb5b573 commit 92da6c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/admin/system/dolibarr.php
Expand Up @@ -396,11 +396,12 @@
{
//print $conf->file->instance_unique_id;
global $dolibarr_main_cookie_cryptkey;
$valuetoshow = ${$newkey} ? ${$newkey} : $dolibarr_main_cookie_cryptkey;
$valuetoshow = ${$newkey} ? ${$newkey} : $dolibarr_main_cookie_cryptkey; // Use $dolibarr_main_instance_unique_id first then $dolibarr_main_cookie_cryptkey
print $valuetoshow;
if (empty($valuetoshow)) {
print img_warning("EditConfigFileToAddEntry", 'dolibarr_main_instance_unique_id');
}
print ' - '.$langs->trans("HashForPing").'='.md5('dolibarr'.$valuetoshow);
}
else
{
Expand Down

0 comments on commit 92da6c7

Please sign in to comment.