forgot-password.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!--
  2. Copyright (C) 2023 Nicola Murino
  3. This WebUI uses the KeenThemes Mega Bundle, a proprietary theme:
  4. https://keenthemes.com/products/templates-mega-bundle
  5. KeenThemes HTML/CSS/JS components are allowed for use only within the
  6. SFTPGo product and restricted to be used in a resealable HTML template
  7. that can compete with KeenThemes products anyhow.
  8. This WebUI is allowed for use only within the SFTPGo product and
  9. therefore cannot be used in derivative works/products without an
  10. explicit grant from the SFTPGo Team ([email protected]).
  11. -->
  12. {{- template "baselogin" .}}
  13. {{- define "content"}}
  14. <form class="form w-100" id="sign_in_form" action="{{.CurrentURL}}" method="POST">
  15. <div class="container mb-10">
  16. <div class="row align-items-center">
  17. <div class="col-5 align-items-center">
  18. <a href="{{.LoginURL}}">
  19. <img alt="Logo" src="{{.StaticURL}}{{.Branding.LogoPath}}" class="h-80px h-md-90px h-lg-100px" />
  20. </a>
  21. </div>
  22. <div class="col-7">
  23. <a href="{{.LoginURL}}" class="text-gray-900 mb-3 ms-3 fs-1 fw-bold">
  24. {{.Branding.ShortName}}
  25. </a>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="text-center mb-10">
  30. <h2 data-i18n="login.forgot_password" class="text-gray-900 mb-3">
  31. Forgot Password ?
  32. </h2>
  33. <div class="text-gray-600 fw-semibold fs-4">
  34. <span data-i18n="login.forgot_password_msg">
  35. Enter your account username below, you will receive a password reset code by email.
  36. </span>
  37. </div>
  38. </div>
  39. {{template "errmsg" .Error}}
  40. <div class="fv-row mb-10">
  41. <input data-i18n="[placeholder]login.your_username" class="form-control form-control-lg form-control-solid" type="text" placeholder="Your username" name="username" spellcheck="false" required />
  42. </div>
  43. <div class="text-center">
  44. <input type="hidden" name="_form_token" value="{{.CSRFToken}}">
  45. <button type="submit" id="sign_in_submit" class="btn btn-lg btn-primary w-100 mb-5">
  46. <span data-i18n="login.send_reset_code" class="indicator-label">Send Reset Code</span>
  47. <span data-i18n="general.wait" class="indicator-progress">
  48. Please wait...
  49. <span class="spinner-border spinner-border-sm align-middle ms-2"></span>
  50. </span>
  51. </button>
  52. </div>
  53. </form>
  54. {{- end}}