Skip to content
Snippets Groups Projects
Commit aa53414f authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Merge branch 'ip-hash-fix' into 'master'

fix bytes identifier

See merge request !1
parents 58330e1f aa825cd0
Branches master
No related tags found
1 merge request!1fix bytes identifier
Pipeline #8751 passed
0.1.0
0.1.1
......@@ -36,7 +36,7 @@ def get_ip_hash() -> str:
return base64.b64encode(
argon2.low_level.hash_secret_raw(
# Support reverse proxy
flask.request.headers.get("X-Forwarded-For", flask.request.remote_addr),
flask.request.headers.get("X-Forwarded-For", flask.request.remote_addr).encode("utf-8"),
salt=flask.current_app.config["IDENTIFIER_HASH_PEPPER"].encode("utf-8"),
time_cost=flask.current_app.config["IDENTIFIER_HASH_TIME_COST"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment