1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 13:49:13 -05:00
forgejo/templates/user/forgot_passwd.tmpl

33 lines
1.4 KiB
Cheetah
Raw Normal View History

2014-04-05 12:32:34 -04:00
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="body" class="container">
<form action="/user/forget_password" method="post" class="form-horizontal card" id="login-card">
{{.CsrfTokenHtml}}
<h3>Reset Your Password</h3>
2014-04-10 16:36:50 -04:00
{{template "base/alert" .}}
2014-04-05 12:32:34 -04:00
{{if .IsResetSent}}
<p>A confirmation e-mail has been sent to <b>{{.Email}}</b>, please check your inbox within {{.Hours}} hours.</p>
<hr/>
<a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
{{else if .IsResetRequest}}
<div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}">
<label class="col-md-3 control-label">Email: </label>
<div class="col-md-7">
<input name="email" class="form-control" placeholder="Type your e-mail address" required="required">
</div>
</div>
<hr/>
<div class="form-group">
<div class="col-md-offset-4 col-md-6">
<button type="submit" class="btn btn-lg btn-primary">Click here to send resend confirmation e-mail</button>
2014-04-05 12:32:34 -04:00
</div>
</div>
{{else if .IsResetDisable}}
<p>Sorry, mail service is not enabled.</p>
2014-04-09 21:42:25 -04:00
{{else if .ResendLimited}}
<p>Sorry, you are sending an e-mail too frequently, please wait another 3 minutes and try again.</p>
2014-04-05 12:32:34 -04:00
{{end}}
</form>
</div>
{{template "base/footer" .}}