[web] allow owner (specified in config) to use debug login even if debug login isn't enabled

This commit is contained in:
lare 2023-04-22 00:57:53 +02:00
parent b676e78090
commit 0a0bfaac66
3 changed files with 11 additions and 11 deletions

View file

@ -21,7 +21,7 @@
</button>
</form>
{% if config["debug-mode"] %}
{% if config["debug-mode"] or ("login" in session and session["login"] == config["MNT"])%}
<form action="" method="post" class="flex">
<label for="debug"
>Debug login, if you see this in Production contact {{config["MNT"]}}</label

View file

@ -5,7 +5,7 @@
>
</div>
<div class="flex flex-row">
{% for peering in peerings.get_peerings_by_mnt(session["login"]) %}
{% for peering in peerings.get_peerings_by_mnt(session["user-data"]["mnt"]) %}
<div class="peering">
<div>
<div>Node: {{peering["node"]}}</div>