Files
vps_web/templates/auth/login.html
ddrwode 5fe60fdd57 哈哈
2026-02-09 22:36:32 +08:00

43 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>用户登录 - 云服务器价格对比</title>
<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/forum.css">
</head>
<body>
<header class="forum-topbar">
<div class="forum-topbar-inner">
<a href="{{ url_for('index') }}" class="forum-brand">VPS Price</a>
<nav class="forum-nav">
<a href="{{ url_for('forum_index') }}">论坛</a>
<a href="{{ url_for('index') }}">价格表</a>
</nav>
</div>
</header>
<main class="forum-main">
<section class="auth-card">
<h1>用户登录</h1>
{% if error %}
<p class="form-error">{{ error }}</p>
{% endif %}
<form method="post" action="{{ url_for('user_login') }}" class="auth-form">
<input type="hidden" name="next" value="{{ request.values.get('next', '') }}">
<div class="form-group">
<label for="username">用户名</label>
<input id="username" name="username" type="text" required autofocus>
</div>
<div class="form-group">
<label for="password">密码</label>
<input id="password" name="password" type="password" required>
</div>
<button type="submit">登录</button>
</form>
<p class="auth-switch">没有账号?<a href="{{ url_for('user_register', next=request.values.get('next', '')) }}">去注册</a></p>
</section>
</main>
</body>
</html>