Files
flask-test/app/templates/login.html
2025-03-31 10:46:49 +01:00

32 lines
1.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 href="{{ url_for('static', filename='css/styles.css') }}" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="{{ url_for('home') }}">Home</a></li>
<li><a href="{{ url_for('admin') }}">Admin</a></li>
<li><a href="{{ url_for('logout') }}">Logout</a></li>
</ul>
</nav>
</header>
<main>
<h1>Login</h1>
<form method="POST" action="{{ url_for('login') }}">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<label for="otp">OTP:</label>
<input type="text" id="otp" name="otp" required>
<button type="submit">Login</button>
</form>
</main>
</body>
</html>