Disabled stream pipe into python variable

pull/2/head
Illia Chub 2021-10-12 10:53:12 +03:00
parent 1330e1c202
commit 1bfa887e6b
1 changed files with 1 additions and 1 deletions

View File

@ -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")