mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-12-01 19:06:45 +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}\";
|
hashedPassword = \"{1}\";
|
||||||
}};
|
}};
|
||||||
#end
|
#end
|
||||||
""".format(request.headers.get("X-User"), request.headers.get("X-Password"))
|
""".format(request.headers.get("X-User"), hashedPassword)
|
||||||
|
|
||||||
mailUserTemplate = """
|
mailUserTemplate = """
|
||||||
\"{0}@{2}\" = {
|
\"{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:
|
for line in fileContent:
|
||||||
index += 1
|
index += 1
|
||||||
|
|
Loading…
Reference in a new issue