|
|
@ -14,6 +14,11 @@ label { |
|
|
|
<div class="toosmall content-container clean"> |
|
|
|
<div class="toosmall content-container clean"> |
|
|
|
<h1>Reset your password</h1> |
|
|
|
<h1>Reset your password</h1> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if not .EmailEnabled }} |
|
|
|
|
|
|
|
<div class="alert info"> |
|
|
|
|
|
|
|
<p><strong>Email is not configured on this server!</strong> Please <a href="/contact">contact your admin</a> to reset your password.</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{ else }} |
|
|
|
{{if .Flashes}}<ul class="errors"> |
|
|
|
{{if .Flashes}}<ul class="errors"> |
|
|
|
{{range .Flashes}}<li class="urgent">{{.}}</li>{{end}} |
|
|
|
{{range .Flashes}}<li class="urgent">{{.}}</li>{{end}} |
|
|
|
</ul>{{end}} |
|
|
|
</ul>{{end}} |
|
|
@ -26,7 +31,7 @@ label { |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<input type="hidden" name="t" value="{{.Token}}" /> |
|
|
|
<input type="hidden" name="t" value="{{.Token}}" /> |
|
|
|
<input type="submit" id="btn-login" value="Reset Password" /> |
|
|
|
<input type="submit" id="btn-login" value="Reset Password" /> |
|
|
|
{{ .CSRFField }} |
|
|
|
{{ .CSRFField }} |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
{{else if not .IsSent}} |
|
|
|
{{else if not .IsSent}} |
|
|
|
<form action="/reset" method="post" onsubmit="disableSubmit()"> |
|
|
|
<form action="/reset" method="post" onsubmit="disableSubmit()"> |
|
|
@ -39,10 +44,11 @@ label { |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
<script type="text/javascript"> |
|
|
|
var $btn = document.getElementById("btn-login"); |
|
|
|
var $btn = document.getElementById("btn-login"); |
|
|
|
function disableSubmit() { |
|
|
|
function disableSubmit() { |
|
|
|
$btn.disabled = true; |
|
|
|
$btn.disabled = true; |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|