邮箱验证码重置密码(吊销 session);后台可配 SMTP 并发送测试信。 Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
796 B
Cheetah
21 lines
796 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="/forgot-password">忘记密码</a> · <a href="/">返回首页</a></p>
|
|
</main>
|
|
{{template "base/footer" .}}
|
|
{{end}}
|