From 1330e1c202c8342c10e8102b1a43ecbf9fc10247 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Mon, 11 Oct 2021 13:57:21 +0300 Subject: [PATCH] Fixed hashed password encoding --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index de04491..e901a5a 100755 --- a/main.py +++ b/main.py @@ -74,6 +74,7 @@ def createUser(): rawPassword = request.headers.get("X-Password") passwordHashProcessDescriptor = subprocess.Popen(["mkpasswd", "-m", "sha-512", "\"", rawPassword, "\""], shell=True, stdout=subprocess.PIPE) hashedPassword = passwordHashProcessDescriptor.communicate()[0] + hashedPassword = hashedPassword.decode("ascii") print("[TRACE] {0}".format(hashedPassword))