You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.4 KiB

10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container">
  4. <form action="/user/forget_password" method="post" class="form-horizontal card" id="login-card">
  5. {{.CsrfTokenHtml}}
  6. <h3>Reset Your Password</h3>
  7. {{template "base/alert" .}}
  8. {{if .IsResetSent}}
  9. <p>A confirmation e-mail has been sent to <b>{{.Email}}</b>, please check your inbox within {{.Hours}} hours.</p>
  10. <hr/>
  11. <a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
  12. {{else if .IsResetRequest}}
  13. <div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}">
  14. <label class="col-md-3 control-label">Email: </label>
  15. <div class="col-md-7">
  16. <input name="email" class="form-control" placeholder="Type your e-mail address" required="required">
  17. </div>
  18. </div>
  19. <hr/>
  20. <div class="form-group">
  21. <div class="col-md-offset-4 col-md-6">
  22. <button type="submit" class="btn btn-lg btn-primary">Click here to send reset confirmation e-mail</button>
  23. </div>
  24. </div>
  25. {{else if .IsResetDisable}}
  26. <p>Sorry, mail service is not enabled.</p>
  27. {{else if .ResendLimited}}
  28. <p>Sorry, you are sending e-mail too frequently, please wait 3 minutes.</p>
  29. {{end}}
  30. </form>
  31. </div>
  32. {{template "base/footer" .}}