Add report button to account deletion section

This commit is contained in:
rubenwardy
2024-07-23 22:11:48 +01:00
parent e603f29b47
commit bb2a1f3638
2 changed files with 7 additions and 2 deletions

View File

@@ -47,6 +47,9 @@ def report():
url = abs_url_samesite(url)
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 current_user.is_authenticated:
user_info = f"{current_user.username}"