pyramid: if possible fetch csrf tokens from pyramid session.

- we need to explicitly pass in requests into secure forms
- allows to not use pylons global session for fetching csrf tokens
This commit is contained in:
Marcin Kuzminski 2017-07-13 12:35:42 +02:00
parent ea17d0aac2
commit c650cdddcc
24 changed files with 43 additions and 36 deletions

View file

@ -6,7 +6,7 @@
<h3 class="panel-title">${_('Settings for Repository: %s') % c.rhodecode_db_repo.repo_name}</h3>
</div>
<div class="panel-body">
${h.secure_form(h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name), method='POST')}
${h.secure_form(h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name), method='POST', request=request)}
<div class="form">
<!-- fields -->
<div class="fields">