awesome/src/views/login.ejs
cheney c09857cc81
All checks were successful
Build and Deploy / build (push) Successful in 56s
Build and Deploy / deploy (push) Successful in 28s
feat: 登录记住本机+密码可见、内容分简介与主体、Markdown 渲染、首页随机条目
2026-09-01 10:53:17 +08:00

49 lines
2.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%- include('partials/head') %>
<%- include('partials/topbar', { active: 'admin' }) %>
<main>
<div class="auth-wrap container">
<section class="auth-card rise" aria-labelledby="auth-title">
<p class="anno">// route: /admin/login · auth: session cookie</p>
<h1 id="auth-title">管理台登录</h1>
<p class="auth-sub">人工通道。AI Agent 请走 <a href="/#mcp">MCP 接口</a>——这扇门不对机器开放。</p>
<form id="login-form" novalidate>
<div class="field">
<label for="login-user">用户名</label>
<input class="input" id="login-user" name="username" type="text" placeholder="admin" autocomplete="username" required />
</div>
<div class="field">
<label for="login-pass">密码</label>
<div class="pwd-field">
<input class="input" id="login-pass" name="password" type="password" placeholder="••••••••" autocomplete="current-password" required />
<button type="button" class="eye-toggle" data-eye-toggle aria-label="显示密码">
<svg class="eye-open" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
<svg class="eye-closed" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" hidden><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>
</button>
</div>
</div>
<div class="auth-row">
<label class="checkline" style="padding:0"><input type="checkbox" name="remember" checked /> 记住这台设备</label>
<a href="mailto:admin@honor3.com">忘记密码?</a>
</div>
<button class="btn btn-primary btn-block" type="submit">登 录</button>
</form>
<div class="auth-note mono">
<span>// 初始账号admin密码为 ADMIN_INIT_PASSWORD</span>
<span>// agents: POST /mcp · 此处返回 403</span>
</div>
</section>
</div>
</main>
<div class="footer-bar" style="border-top:2px solid var(--ink)">
<div class="container" style="display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:20px 0 26px;font-family:var(--font-mono);font-size:12px">
<span>© 2026 honor3.com · Awesome Index Admin</span>
<span><a href="/" style="color:inherit;text-decoration:none">← 返回首页</a></span>
</div>
</div>
<%- include('partials/footer-bar') %>