Implemented server-side password hashing

This commit is contained in:
Illia Chub 2021-10-12 13:27:58 +03:00
parent 8580c047d3
commit 16b6a15d0c

View file

@ -107,7 +107,7 @@ def createUser():
hashedPassword = \"{1}\";
}};
#end
""".format(request.headers.get("X-User"), request.headers.get("X-Password"))
""".format(request.headers.get("X-User"), hashedPassword)
mailUserTemplate = """
\"{0}@{2}\" = {
@ -124,7 +124,7 @@ def createUser():
}
'';
};
""".format(request.headers.get("X-User"), request.headers.get("X-Password"), request.headers.get("X-Domain"))
""".format(request.headers.get("X-User"), hashedPassword, request.headers.get("X-Domain"))
for line in fileContent:
index += 1