Merge pull request #302834 from gador/pgadmin-fix-csrf

pgadmin4: fix CSRF issue

authored by Weijia Wang and committed by GitHub 77991a85 252f23d1

+12 -1
+12 -1
pkgs/tools/admin/pgadmin/default.nix
··· 26 27 # keep the scope, as it is used throughout the derivation and tests 28 # this also makes potential future overrides easier 29 - pythonPackages = python3.pkgs.overrideScope (final: prev: rec { }); 30 31 offlineCache = fetchYarnDeps { 32 yarnLock = ./yarn.lock;
··· 26 27 # keep the scope, as it is used throughout the derivation and tests 28 # this also makes potential future overrides easier 29 + pythonPackages = python3.pkgs.overrideScope (final: prev: rec { 30 + # Flask 5.4.3 introduces an CSRF error which makes it impossible to login 31 + # So either we downgrade flask here or use "WTF_CSRF_ENABLED = false" in the 32 + # module config to disable CSRF. 33 + flask-security-too = prev.flask-security-too.overridePythonAttrs (oldAttrs: rec { 34 + version = "5.4.1"; 35 + src = oldAttrs.src.override { 36 + inherit version; 37 + hash = "sha256-Ay7+gk+zuUlXtw0LDdsnvSa22z+yE6VR1guu9QmiFvw="; 38 + }; 39 + }); 40 + }); 41 42 offlineCache = fetchYarnDeps { 43 yarnLock = ./yarn.lock;