From acd1f42847786963fc4aaeed884c3091700c9e35 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Tue, 17 Nov 2026 21:23:57 +0100 Subject: feat(core): add user account page Add an authenticated user page showing the current username and remote address, including guidance for validating reverse-proxy hop configuration. Allow users to change their own password through a CSRF-protected WTForms form while preserving the active session and invalidating other existing sessions. --- webmentions_ssg/templates/user.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 webmentions_ssg/templates/user.html (limited to 'webmentions_ssg/templates/user.html') diff --git a/webmentions_ssg/templates/user.html b/webmentions_ssg/templates/user.html new file mode 100644 index 0000000..ecd5ba9 --- /dev/null +++ b/webmentions_ssg/templates/user.html @@ -0,0 +1,35 @@ + +{% extends "base.html" %} + +{% set title = "User" %} +{% from "bootstrap5/form.html" import render_form %} + +{% block content %} +

User

+
+

Account

+
+
Username
+
+ {{ current_user.username }} +
+
Remote address
+
+ {{ remote_address or "Unavailable" }} +
+
+

+ The remote address is the client IP seen by the application for this request. + If it shows your reverse proxy instead, check the + PROXY_FIX_TRUSTED_HOPS configuration. +

+
+
+

Change password

+
{{ render_form(form) }}
+
+{% endblock %} -- cgit v1.3.1