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.7 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
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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>
  28. </div>
  29. <div class="ui divider"></div>
  30. <div class="inline field">
  31. <label></label>
  32. <button class="ui blue button">{{.i18n.Tr "auth.send_reset_mail"}}</button>
  33. </div>
  34. {{else if .IsResetDisable}}
  35. <p class="center">{{.i18n.Tr "auth.disable_forgot_password_mail"}}</p>
  36. {{else if .ResendLimited}}
  37. <p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  38. {{end}}
  39. </div>
  40. </form>
  41. </div>
  42. </div>
  43. </div>
  44. {{template "base/footer" .}}