From 1bfa887e6b7c6be23d6d461464ced45c8b0b2585 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Tue, 12 Oct 2021 10:53:12 +0300 Subject: [PATCH] Disabled stream pipe into python variable --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e901a5a..26a1934 100755 --- a/main.py +++ b/main.py @@ -72,7 +72,7 @@ def upgradeSystem(): def createUser(): rawPassword = request.headers.get("X-Password") - passwordHashProcessDescriptor = subprocess.Popen(["mkpasswd", "-m", "sha-512", "\"", rawPassword, "\""], shell=True, stdout=subprocess.PIPE) + passwordHashProcessDescriptor = subprocess.Popen(["mkpasswd", "-m", "sha-512", "\"", rawPassword, "\""], shell=True) hashedPassword = passwordHashProcessDescriptor.communicate()[0] hashedPassword = hashedPassword.decode("ascii")