Files
jiang13-forum/templates/auth/login.tmpl
freefire fde5f628ec feat: opaque session、安装/发帖 SSR 与最小 Admin 后台
浏览器登录改为 DB sessions(可吊销);敏感词与 OIDC PEM 入 settings;
落地安装向导、注册发帖与 /admin 仪表盘/板块/审核/设置。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-29 05:44:16 +08:00

21 lines
749 B
Cheetah

{{define "auth/login"}}
{{template "base/head" .}}
<main class="j13-main j13-main--solo j13-auth">
<h1>登录</h1>
{{template "base/alert" .}}
<form method="post" action="/login" class="j13-form">
<input type="hidden" name="_csrf" value="{{.CSRF}}"/>
<input type="hidden" name="redirect" value="{{.Redirect}}"/>
<label>用户名
<input name="username" required autocomplete="username" value="{{.Username}}"/>
</label>
<label>密码
<input type="password" name="password" required autocomplete="current-password"/>
</label>
<button type="submit">登录</button>
</form>
<p><a href="/register">没有账号?注册</a> · <a href="/">返回首页</a></p>
</main>
{{template "base/footer" .}}
{{end}}