mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
Implemented server-side password hashing
This commit is contained in:
parent
8580c047d3
commit
16b6a15d0c
4
main.py
4
main.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue