26e4d0dd27
imprint still unfinished
60 lines
2.1 KiB
HTML
60 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Login</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/login.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/footer.css') }}">
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="auth-nav">
|
|
<a class="brand" href="{{ url_for('main.home') }}">
|
|
<span class="brand-mark">♛</span>
|
|
<span>8-Damen- und 8-Tuerme Solver</span>
|
|
</a>
|
|
|
|
<ul class="nav-links">
|
|
<li><a href="{{ url_for('login.login') }}">Login</a></li>
|
|
<li><a href="{{ url_for('login.register') }}">Create account</a></li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<main class="auth-shell">
|
|
<section class="auth-panel">
|
|
<h1>Login to your account</h1>
|
|
<p class="muted">If two-factor authentication is enabled, enter the current 6-digit code from your authenticator app after the password check.</p>
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<p class="message {{ category }}">{{ message }}</p>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% if error %}
|
|
<p class="message error">{{ error }}</p>
|
|
{% endif %}
|
|
|
|
<form action="{{ url_for('login.login') }}" method="post">
|
|
<label for="username">Username</label>
|
|
<input id="username" type="text" name="username" maxlength="20" required value="{{ username or '' }}">
|
|
|
|
<label for="password">Password</label>
|
|
<input id="password" type="password" name="password" minlength="8" maxlength="128" required>
|
|
|
|
<button class="magnetic" type="submit" data-loading-label="Checking login...">Login</button>
|
|
</form>
|
|
</section>
|
|
</main>
|
|
|
|
{% include "partials/footer.html" %}
|
|
|
|
<script src="{{ url_for('static', filename='js/login.js') }}" defer></script>
|
|
</body>
|
|
|
|
</html>
|