From e974a3b2b37a949ed39e94e99cd2491d66dece4d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 Mar 2019 20:36:05 +0100 Subject: [PATCH 1/2] Add more info --- htdocs/admin/security.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php index 4af3854d6b9..b5c4dd8dc9d 100644 --- a/htdocs/admin/security.php +++ b/htdocs/admin/security.php @@ -398,7 +398,6 @@ print ''.$langs->trans("Action").''; print ''; // Disable clear password in database - print ''; print ''.$langs->trans("DoNotStoreClearPassword").''; print ''; @@ -413,6 +412,8 @@ if (! $conf->global->DATABASE_PWD_ENCRYPTED) print ''.$langs->trans("Activate").''; print ""; } + +// Database conf file encryption if (! empty($conf->global->DATABASE_PWD_ENCRYPTED)) { print ''; @@ -494,9 +495,21 @@ print ''; print ''; print ''; +print '
'; - -//print ''; +if (GETPOST('info','int') > 0) +{ + if (function_exists('password_hash')) + { + print $langs->trans("Note: The function password_hash exists on your PHP"); + } + else + { + print $langs->trans("Note: The function password_hash does not exists on your PHP"); + } + print 'MAIN_SECURITY_HASH_ALGO = '.$conf->global->MAIN_SECURITY_HASH_ALGO."
\n"; + print 'MAIN_SECURITY_SALT = '.$conf->global->MAIN_SECURITY_SALT."
\n"; +} print ''; From b7066d92ccc046cf2c5128e6c8a65c2cf31cf12c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 Mar 2019 20:37:03 +0100 Subject: [PATCH 2/2] More info --- htdocs/admin/security.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php index b5c4dd8dc9d..6c3ed1f294b 100644 --- a/htdocs/admin/security.php +++ b/htdocs/admin/security.php @@ -501,11 +501,11 @@ if (GETPOST('info','int') > 0) { if (function_exists('password_hash')) { - print $langs->trans("Note: The function password_hash exists on your PHP"); + print $langs->trans("Note: The function password_hash exists on your PHP")."
\n"; } else { - print $langs->trans("Note: The function password_hash does not exists on your PHP"); + print $langs->trans("Note: The function password_hash does not exists on your PHP")."
\n"; } print 'MAIN_SECURITY_HASH_ALGO = '.$conf->global->MAIN_SECURITY_HASH_ALGO."
\n"; print 'MAIN_SECURITY_SALT = '.$conf->global->MAIN_SECURITY_SALT."
\n";