Support logging in and out

This commit is contained in:
decentral1se
2021-06-11 22:28:43 +02:00
parent 5942468164
commit 30edb39163
4 changed files with 31 additions and 15 deletions

11
templates/admin.html Normal file
View File

@ -0,0 +1,11 @@
<html>
<head>
<title>Home</title>
</head>
<body>
<p>
Hello, {{ user.preferred_username }}
<small>(<a href="{{ url_for('logout') }}">logout</a>)</small>
</p>
</body>
</html>

View File

@ -1,8 +0,0 @@
<html>
<head>
<title>Home</title>
</head>
<body>
<p>Hello, {{ user.preferred_username }}</p>
</body>
</html>

View File

@ -3,6 +3,8 @@
<title>Login</title>
</head>
<body>
<p>Please login</p>
<p>
<a href="{{ url_for('login_keycloak') }}">Login</a>
</p>
</body>
</html>