Skip to content

Commit

Permalink
feat: Make ogdch_force_reset_passwords action POST-only
Browse files Browse the repository at this point in the history
  • Loading branch information
bellisk committed Jul 1, 2024
1 parent bdd2958 commit 4a9b1ca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ckanext/switzerland/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a9b1ca

Please sign in to comment.