Files
taiko.su/templates/admin_login.html
T

32 lines
1.7 KiB
HTML
Raw Normal View History

2026-07-28 13:05:53 +08:00
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>管理员登录</title>
<link rel="icon" href="{{ config.assets_baseurl }}img/favicon.png" type="image/png">
<link href="{{ config.basedir }}src/css/admin.css" rel="stylesheet">
</head>
<body class="admin-login-page">
<main class="admin-login-main">
<section class="admin-login-box" aria-labelledby="login-title">
<h1 id="login-title">管理员登录</h1>
<p class="admin-login-help">登录后可配置唯一游玩曲目、接口令牌并查看彩蛋码。</p>
{% for category, message in get_flashed_messages(with_categories=true) %}
<div class="message{% if category == 'error' %} message-error{% endif %}">{{ message }}</div>
{% endfor %}
<form method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="form-field">
<label for="username">用户名</label>
<input type="text" id="username" name="username" value="{{ username }}" autocomplete="username" required autofocus>
<label for="password">密码</label>
<input type="password" id="password" name="password" autocomplete="current-password" required>
</div>
<button type="submit" class="save-song admin-login-button">登录</button>
</form>
</section>
</main>
</body>
</html>