2022-12-07 17:00:52 +01:00
|
|
|
{% extends 'base.html' %} {% block content %} {% if msg %}
|
|
|
|
<div style="background-color: red">{{msg}}</div>
|
2022-11-17 06:43:43 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2022-11-12 14:50:18 +01:00
|
|
|
<form action="https://dn42.g-load.eu/auth/">
|
2022-12-07 17:00:52 +01:00
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
2023-06-05 00:19:23 +02:00
|
|
|
href="{{config['base-dir']}}static/auth.css"
|
2022-12-07 17:00:52 +01:00
|
|
|
/>
|
|
|
|
<input
|
|
|
|
type="hidden"
|
|
|
|
id="return"
|
|
|
|
name="return"
|
2022-12-27 19:01:07 +01:00
|
|
|
value='{{config["domain"]+config["base-dir"]+"api/auth/kverify"}}'
|
2022-12-07 17:00:52 +01:00
|
|
|
/>
|
|
|
|
<button
|
|
|
|
type="submit"
|
2023-06-05 00:19:23 +02:00
|
|
|
class="kioubit-btn-dark"
|
2022-12-07 17:00:52 +01:00
|
|
|
>
|
2023-06-05 00:19:23 +02:00
|
|
|
<object
|
|
|
|
width="35px"
|
|
|
|
height="35px"
|
|
|
|
type="image/svg+xml"
|
|
|
|
data="{{config['base-dir']}}static/auth.svg"
|
|
|
|
class="kioubit-btn-logo"
|
|
|
|
></object>
|
|
|
|
Authenticate with Kioubit.dn42
|
2022-12-07 17:00:52 +01:00
|
|
|
</button>
|
2022-11-12 14:50:18 +01:00
|
|
|
</form>
|
|
|
|
|
2023-04-22 16:24:09 +02:00
|
|
|
{% if config["debug-mode"] or ("login" in session and session["login"] == config["MNT"])%}
|
2022-11-17 07:20:03 +01:00
|
|
|
<form action="" method="post" class="flex">
|
2022-12-07 17:00:52 +01:00
|
|
|
<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"
|
|
|
|
required
|
|
|
|
/><br />
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="asn"
|
|
|
|
id="asn"
|
|
|
|
placeholder="AS4242420000"
|
|
|
|
required
|
|
|
|
/><br />
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="allowed4"
|
|
|
|
id="allowed4"
|
|
|
|
placeholder="ipv4 subnet (optional)"
|
|
|
|
/><br />
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="allowed6"
|
|
|
|
id="allowed6"
|
|
|
|
placeholder="ipv6 subnet (optional)"
|
|
|
|
/><br />
|
|
|
|
<input
|
|
|
|
type="number"
|
|
|
|
name="theanswer"
|
|
|
|
id="theanswer"
|
|
|
|
placeholder="The answer for everything"
|
|
|
|
required
|
|
|
|
/><br />
|
|
|
|
<input type="submit" value="login" />
|
2022-11-12 14:50:18 +01:00
|
|
|
</form>
|
2022-12-07 17:00:52 +01:00
|
|
|
{% endif %} {% endblock %}
|