From 6dd9355f5899d555a5e78391b9444c06055789b4 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Thu, 18 May 2023 18:38:32 -0400 Subject: [PATCH] read password from cli, not embedded in a script the password has also been reset. it was only usable internally --- dedupe-mark.py | 3 ++- find-mailing-duplicates.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dedupe-mark.py b/dedupe-mark.py index e04f1bd..263403c 100755 --- a/dedupe-mark.py +++ b/dedupe-mark.py @@ -4,12 +4,13 @@ # # SPDX-License-Identifier: GPL-3.0-or-later +import sys import mysql.connector mydb = mysql.connector.connect( host="localhost", user="root", - password="liFor2Sh", + password=sys.argv[1], database="civicrm" ) diff --git a/find-mailing-duplicates.py b/find-mailing-duplicates.py index b8cbe28..93c824b 100755 --- a/find-mailing-duplicates.py +++ b/find-mailing-duplicates.py @@ -35,7 +35,7 @@ sys.stderr.write('\nstarting new run... %s\n\n' % date.today()) mydb = mysql.connector.connect( host="localhost", user="root", - password="liFor2Sh", + password=sys.argv[1], database="civicrm" ) -- 2.25.1