mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Add report button to account deletion section
This commit is contained in:
parent
e603f29b47
commit
bb2a1f3638
@ -47,6 +47,9 @@ def report():
|
|||||||
url = abs_url_samesite(url)
|
url = abs_url_samesite(url)
|
||||||
|
|
||||||
form = ReportForm(formdata=request.form) if current_user.is_authenticated else None
|
form = ReportForm(formdata=request.form) if current_user.is_authenticated else None
|
||||||
|
if request.method == "GET":
|
||||||
|
form.message.data = request.args.get("message", "")
|
||||||
|
|
||||||
if form and form.validate_on_submit():
|
if form and form.validate_on_submit():
|
||||||
if current_user.is_authenticated:
|
if current_user.is_authenticated:
|
||||||
user_info = f"{current_user.username}"
|
user_info = f"{current_user.username}"
|
||||||
|
@ -85,11 +85,13 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<p>
|
<p>
|
||||||
{{ _("Account Deletion and Deactivation isn't available to users yet.") }}
|
{{ _("Account Deletion and Deactivation isn't available to users yet.") }}
|
||||||
{{ _("Please contact the admin.") }}
|
{{ _("Please raise a report to request account deletion.") }}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a class="btn btn-secondary" href="{{ url_for('report.report', url=url_current(), message="Delete my account") }}">{{ _("Report") }}</a>
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<h3 class="mt-5">{{ _("Recent Account Actions") }}</h3>
|
<h3 class="mt-5">{{ _("Recent Account Actions") }}</h3>
|
||||||
|
|
||||||
{% from "macros/audit_log.html" import render_audit_log %}
|
{% from "macros/audit_log.html" import render_audit_log %}
|
||||||
|
Loading…
Reference in New Issue
Block a user