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

forgot_passwd.tmpl 1.8 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {{template "base/head" .}}
  2. <div class="ui secondary pointing tabular top attached borderless menu new-menu navbar">
  3. <a class="active item" rel="nofollow" href="{{AppSubUrl}}/user/forgot_password">
  4. {{.i18n.Tr "phone.email_retrieve_password"}}
  5. </a>
  6. {{if .EnablePhone }}
  7. <a class="item" rel="nofollow" href="{{AppSubUrl}}/user/forgot_password?type=phone">
  8. {{.i18n.Tr "phone.mobile_number_retrieve_password"}}
  9. </a>
  10. {{end}}
  11. </div>
  12. <div class="user forgot password">
  13. <div class="ui middle very relaxed page grid">
  14. <div class="column">
  15. <form class="ui form ignore-dirty" action="{{.Link}}" method="post">
  16. {{.CsrfTokenHtml}}
  17. <h2 class="ui top attached header">
  18. {{.i18n.Tr "auth.forgot_password_title"}}
  19. </h2>
  20. <div class="ui attached segment">
  21. {{template "base/alert" .}}
  22. {{if .IsResetSent}}
  23. <p>{{.i18n.Tr "auth.reset_password_mail_sent_prompt" .Email .ResetPwdCodeLives | Str2html}}</p>
  24. {{else if .IsResetRequest}}
  25. <div class="required inline field {{if .Err_Email}}error{{end}}">
  26. <label for="email">{{.i18n.Tr "email"}}</label>
  27. <input id="email" name="email" type="email" value="{{.Email}}" autofocus required placeholder="{{.i18n.Tr "auth.please_enter_main_email"}}">
  28. </div>
  29. <div style="text-align:center;">{{.i18n.Tr "auth.please_enter_main_email_tips"}}</div>
  30. <div class="ui divider"></div>
  31. <div class="inline field">
  32. <label></label>
  33. <button class="ui blue button">{{.i18n.Tr "auth.send_reset_mail"}}</button>
  34. </div>
  35. {{else if .IsResetDisable}}
  36. <p class="center">{{.i18n.Tr "auth.disable_forgot_password_mail"}}</p>
  37. {{else if .ResendLimited}}
  38. <p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  39. {{end}}
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. {{template "base/footer" .}}