1
2
3
4
5
6
7
8
9
10
11
12
13
|
{{define "content"}}
<div class="auth">
<h3 class="rule">Reset your password <small>or <a href="/login">log in</a></small></h3>
{{if .Data.Sent}}<p class="notice">If that account has a verified email address, a reset link is on its way. It is valid for 24 hours.</p>{{end}}
{{if .Data.Mail}}
<p>Enter your username or verified email address and a link to choose a new password will be sent.</p>
<form method="post" action="/reset" class="stack centred">
<label>Username or email <input name="who" required autofocus></label>
<div class="actions"><button class="btn primary">Send reset link ▸</button></div>
</form>
{{else}}<p>This server has no outgoing mail configured, so passwords are reset by the administrator with <code>gitpocket passwd</code>.</p>{{end}}
</div>
{{end}}
|