reset-password.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.reset_password" class="text-gray-900 mb-3">
  31. Reset Password
  32. </h2>
  33. <div class="text-gray-600 fw-semibold fs-4">
  34. <span data-i18n="login.reset_pwd_msg">
  35. Check your email for the confirmation code
  36. </span>
  37. </div>
  38. </div>
  39. {{- template "errmsg" .Error}}
  40. <div class="fv-row mb-10">
  41. <input data-i18n="[placeholder]login.confirm_code" class="form-control form-control-lg form-control-solid" type="text" placeholder="Confirmation code" name="code" spellcheck="false" required />
  42. </div>
  43. <div class="fv-row mb-10">
  44. <input data-i18n="[placeholder]general.new_password" class="form-control form-control-lg form-control-solid" type="password" name="password" placeholder="New Password" autocomplete="new-password" spellcheck="false" required />
  45. </div>
  46. <div class="fv-row mb-10">
  47. <input data-i18n="[placeholder]general.confirm_password" class="form-control form-control-lg form-control-solid" type="password" name="confirm_password" placeholder="Confirm Password" autocomplete="new-password" spellcheck="false" required />
  48. </div>
  49. <div class="text-center">
  50. <input type="hidden" name="_form_token" value="{{.CSRFToken}}">
  51. <button type="submit" id="sign_in_submit" class="btn btn-lg btn-primary w-100 mb-5">
  52. <span data-i18n="login.reset_submit" class="indicator-label">Update Password & Login</span>
  53. <span data-i18n="general.wait" class="indicator-progress">
  54. Please wait...
  55. <span class="spinner-border spinner-border-sm align-middle ms-2"></span>
  56. </span>
  57. </button>
  58. </div>
  59. </form>
  60. {{- end}}