- Improved CSRF handling

- Wordpress plugin for Evie Chat
This commit is contained in:
Josako
2024-08-13 14:31:29 +02:00
parent ab38dd7540
commit a237db339a
14 changed files with 944 additions and 23 deletions

View File

@@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block title %}Unexpected Error{% endblock %}
{% block content_title %}Internal Server error{% endblock %}
{% block content_description %}Something unexpected happened! The administrator has been notified.{% endblock %}
{% block content %}
<p><a href="{{ url_for('basic_bp.index') }}">Return home</a></p>
{% endblock %}

View File

@@ -20,6 +20,13 @@
{# </p>#}
<p>{{ login_user_form.submit() }}</p>
</form>
<!-- Debugging information -->
{# <div style="margin-top: 20px; border: 1px solid #ccc; padding: 10px;">#}
{# <h4>Debugging Information:</h4>#}
{# <p>CSRF Token: {{ login_user_form.csrf_token.current_token }}</p>#}
{# <p>Session ID: {{ session.sid }}</p>#}
{# </div>#}
{% endblock %}
{% block content_footer %}
First time here? Forgot your password?