From 81e60dff0e132858cef2a5c43b13acd47ae7c401 Mon Sep 17 00:00:00 2001 From: Frederico Gomes Date: Sat, 21 Mar 2026 15:03:55 +0000 Subject: [PATCH] wireguard: Add template to show generated client info Signed-off-by: Frederico Gomes Reviewed-by: James Valleroy --- .../templates/wireguard_auto_add_client.html | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 plinth/modules/wireguard/templates/wireguard_auto_add_client.html diff --git a/plinth/modules/wireguard/templates/wireguard_auto_add_client.html b/plinth/modules/wireguard/templates/wireguard_auto_add_client.html new file mode 100644 index 000000000..0cff47119 --- /dev/null +++ b/plinth/modules/wireguard/templates/wireguard_auto_add_client.html @@ -0,0 +1,46 @@ +{% extends "base.html" %} +{% comment %} +# SPDX-License-Identifier: AGPL-3.0-or-later +{% endcomment %} + +{% load bootstrap %} +{% load i18n %} + +{% block content %} + +

{{ title }}

+ +
+ {% csrf_token %} + + {{ form|bootstrap }} + + {% if client_privkey %} +
+ + + + + + +
{% trans "IP Address" %}{{ next_ip }}
{% trans "Endpoint" %}{{ endpoint }}
{% trans "Public Key" %}{{ client_pubkey }}
{% trans "Private Key" %} +
{% trans "Click to reveal" %} + {{ client_privkey }} +
+
+ +
+ {% trans "Important:" %} + {% trans "Save the private key now. This page shows it only once!" %} +
+ {% endif %} + + + +{% endblock %}