Migrated some routes to POST

- shelf massadd
- resetpassword
- delete shelf
- send to kindle
This commit is contained in:
Ozzieisaacs
2021-12-25 21:39:58 +01:00
parent 573c9f9fb4
commit f39dc100b4
6 changed files with 41 additions and 11 deletions

View File

@@ -17,7 +17,7 @@
</div>
{% if ( g.user and g.user.role_passwd() or g.user.role_admin() ) and not content.role_anonymous() %}
{% if g.user and g.user.role_admin() and not new_user and not profile and ( mail_configured and content.email if content.email != None ) %}
<a class="btn btn-default" id="resend_password" href="{{url_for('admin.reset_user_password', user_id = content.id) }}">{{_('Reset user Password')}}</a>
<a class="btn btn-default postAction" id="resend_password" role="button" data-action="{{url_for('admin.reset_user_password', user_id = content.id) }}">{{_('Reset user Password')}}</a>
{% endif %}
<div class="form-group">
<label for="password">{{_('Password')}}</label>