From 878a0c157b772a7ed04d4cc395059087f964b823 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 15 Feb 2014 10:01:21 +0100 Subject: implement rudimentary password authentication --- python_client.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'python_client.py') diff --git a/python_client.py b/python_client.py index fc0ff9b..d30993c 100644 --- a/python_client.py +++ b/python_client.py @@ -40,6 +40,7 @@ nextID = 1 lastReceivedPacketID = 0 packetCache = [] packetLock = threading.Lock() +password = '' u32 = struct.Struct(' 1: + password = sys.argv[1] +else: + print('No password entered on command line!') + app = QtWidgets.QApplication(sys.argv) mainwin = MainWindow() -- cgit v1.2.3