support hypercorn server_names against dns rebind attacks, add cookie sessions to flash messages
This commit is contained in:
@@ -1,22 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Captive Portal Universität Stuttgart</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
</head>
|
||||
<body>
|
||||
{% if not state.mac %}
|
||||
It seems you're accessing this site from outside the network this captive portal is running for.
|
||||
{% elif state.captive %}
|
||||
To get access to the internet please accept our usage guidelines by clicking this button:
|
||||
<form method="POST" action="/login"><button type="submit">Accept</button></form>
|
||||
{% else %}
|
||||
You already accepted out conditions and are currently granted access to the internet:
|
||||
<form method="POST" action="/login"><button type="submit">Renew session</button></form>
|
||||
<form method="POST" action="/logout"><button type="submit">Close session</button></form>
|
||||
<br>
|
||||
Your current session will last for {{ state.allowed_remaining }} seconds.
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
{% if not state.mac %}
|
||||
<p>It seems you're accessing this site from outside the network this captive portal is running for.</p>
|
||||
<p>Your clients IP address is {{ state.address }}</p>
|
||||
{% elif state.captive %}
|
||||
To get access to the internet please accept our usage guidelines by clicking this button:
|
||||
<form method="POST" action="/login"><button type="submit">Accept</button></form>
|
||||
{% else %}
|
||||
You already accepted out conditions and are currently granted access to the internet:
|
||||
<form method="POST" action="/login"><button type="submit">Renew session</button></form>
|
||||
<form method="POST" action="/logout"><button type="submit">Close session</button></form>
|
||||
<br>
|
||||
Your current session will last for {{ state.allowed_remaining }} seconds.
|
||||
{% endif %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user