*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit ba9102a7 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Remove assertion about having the SECRET_KEY set

* Invenio-Config already takes care of checking the value in real
  Invenio applications and issues a warning if it's unset
parent 8bb8c1b6
1 merge request!84Move configuration magic from `finalize_app` to the start of extension loading
......@@ -237,9 +237,6 @@ def assemble_keycloak_config_from_parts(app):
def populate_unset_salt_values(app):
"""Populate the salt values if they're not set yet."""
secret_key = app.config.get("SECRET_KEY", None)
if secret_key is None:
raise RuntimeError("SECRET_KEY configuration is unset! Aborting.")
app.config.setdefault("CSRF_SECRET_SALT", secret_key)
app.config.setdefault("SECURITY_RESET_SALT", secret_key)
app.config.setdefault("SECURITY_LOGIN_SALT", secret_key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment