Skip to content
Snippets Groups Projects
Commit 5bd0b365 authored by Tomáš Hozman's avatar Tomáš Hozman
Browse files

fix bytes identifier

parent 58330e1f
No related branches found
No related tags found
1 merge request!1fix bytes identifier
Pipeline #8749 passed
...@@ -36,7 +36,7 @@ def get_ip_hash() -> str: ...@@ -36,7 +36,7 @@ def get_ip_hash() -> str:
return base64.b64encode( return base64.b64encode(
argon2.low_level.hash_secret_raw( argon2.low_level.hash_secret_raw(
# Support reverse proxy # 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"), salt=flask.current_app.config["IDENTIFIER_HASH_PEPPER"].encode("utf-8"),
time_cost=flask.current_app.config["IDENTIFIER_HASH_TIME_COST"], 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