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

47 lines
2.1 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_register') }}" 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 minlength="3" maxlength="20" placeholder="3-20 位,字母/数字/下划线">
</div>
<div class="form-group">
<label for="password">密码</label>
<input id="password" name="password" type="password" required minlength="6">
</div>
<div class="form-group">
<label for="confirm_password">确认密码</label>
<input id="confirm_password" name="confirm_password" type="password" required minlength="6">
</div>
<button type="submit">注册并登录</button>
</form>
<p class="auth-switch">已有账号?<a href="{{ url_for('user_login', next=request.values.get('next', '')) }}">去登录</a></p>
</section>
</main>
</body>
</html>