fix csfr token on contact delete
This commit is contained in:
@@ -189,6 +189,7 @@
|
||||
{% if user.email != current_user.email %}
|
||||
<form method="POST" action="{{ url_for('contacts.delete_contact', id=user.id) }}" class="inline"
|
||||
onsubmit="return confirm('Are you sure you want to delete this contact?');">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<button type="submit"
|
||||
class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-sm no-underline transition-colors duration-200"
|
||||
style="background-color: rgba(239,68,68,0.1); color: #b91c1c;">
|
||||
|
||||
Reference in New Issue
Block a user