add/change conf-file options; add debug login

This commit is contained in:
lare 2022-11-17 07:20:03 +01:00
parent 1770eeb201
commit c1663e42cc
4 changed files with 23 additions and 14 deletions

View file

@ -5,10 +5,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{config["MNT"]}} Autopeering</title>
<link rel="stylesheet" href="/static/style.css">
<link rel="stylesheet" href="{{config['base-dir']}}static/style.css">
</head>
<body>
<header class="flex flex-row"><div></div><a href="/">{{config["MNT"]}} Autopeering</a>{% if "login" in session %}<a href="/logout">logout</a>{% else %} <a href="/login?return=/peer">login</a>{%endif%}</header>
<header class="flex flex-row"><div></div><a href="{{config['base-dir']}}">{{config["MNT"]}} Autopeering</a>{% if "login" in session %}<a href="{{config['base-dir']}}logout">logout</a>{% else %} <a href="{{config['base-dir']}}login?return=/peer">login</a>{%endif%}</header>
<div class="content flex">
{% block content %}
{% endblock %}

View file

@ -16,9 +16,16 @@
</button>
</form>
<form action="" method="post">
<input type="text" name="logincode" id="logincode">
<input type="submit" value="submit">
{% if config["debug-mode"] %}
<form action="" method="post" class="flex">
<label for="debug">Debug login, if you see this in Production contact {{config["MNT"]}}</label><br>
<input type="text" name="mnt" id="mnt" placeholder="YOUR-MNT"><br>
<input type="text" name="asn" id="asn" placeholder="AS4242420000"><br>
<input type="text" name="allowed-v4" id="allowed-v4" placeholder="ipv4 subnet"><br>
<input type="text" name="allowed-v6" id="allowed-v6" placeholder="ipv6 subnet"><br>
<input type="number" name="theanswer" id="theanswer" placeholder="The answer for everything"><br>
<input type="submit" value="login">
</form>
{% endif %}
{% endblock %}