From 4a9b1cabdc25cfa82540961aefa4f48481cb1417 Mon Sep 17 00:00:00 2001 From: Rae Knowler Date: Mon, 1 Jul 2024 18:46:46 +0200 Subject: [PATCH] feat: Make ogdch_force_reset_passwords action POST-only --- ckanext/switzerland/logic.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ckanext/switzerland/logic.py b/ckanext/switzerland/logic.py index a04d4a1e..90974512 100644 --- a/ckanext/switzerland/logic.py +++ b/ckanext/switzerland/logic.py @@ -663,8 +663,6 @@ def ogdch_subscribe_unsubscribe_all(context, data_dict): return subscribe_unsubscribe_all(context, data_dict) -# TODO: remove @side_effect_free so that this action only works with POST. -@side_effect_free def ogdch_force_reset_passwords(context, data_dict): """Reset the password of a single user, or of all users, to a random value that fulfills our password requirements. The new password is not