From 6543782ebe81a64c74a763431f0991becb57cec4 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sun, 11 Dec 2022 18:48:58 +0800 Subject: [PATCH] Do not write the password salt in the source code. Instead, let KeepItSafe.txt include it. --- get_mysql_credentials.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/get_mysql_credentials.php b/get_mysql_credentials.php index 71e875d..6c232bc 100644 --- a/get_mysql_credentials.php +++ b/get_mysql_credentials.php @@ -2,6 +2,5 @@ $csv = array_map('str_getcsv', file('./../../lrr_submission/KeepItSafe.txt')); $mysql_username = $csv[0][0]; $mysql_password = $csv[0][1]; -//append password for Lecturer and TA -$salt = "Lrr@2022" ; +$salt = $csv[1][1]; // the second column in the second line of KeepItSafe.txt has the salt, e.g., Lrr@2022 ?>