Skip to content

Commit

Permalink
fix: add csrf_token to user form
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Apr 24, 2023
1 parent 59ddb1f commit 05b0048
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include README.md
include LICENSE
include requirements.txt
recursive-include ckanext/saml *.html *.json *.js *.less *.css *.mo *.yml
recursive-include ckanext/saml *.html *.json *.js *.less *.css *.mo *.yml *.yaml
recursive-include ckanext/saml/migration *.ini *.py *.mako
1 change: 1 addition & 0 deletions ckanext/saml/templates/user/edit_user_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% set is_saml_user = h.saml_is_saml_user(g.user) %}

<form id="user-edit-form" class="dataset-form" method="post" action="{{ action }}" enctype="multipart/form-data">
{{ h.csrf_input() if "csrf_input" in h }}
{{ form.errors(error_summary) }}

<fieldset>
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ckanext-saml
version = 0.3.0
version = 0.3.1
description =
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit 05b0048

Please sign in to comment.