[web] allow owner (specified in config) to use debug login even if debug login isn't enabled
This commit is contained in:
parent
cb03ba5556
commit
707040de59
3 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue