reset-password.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!--
  2. Copyright (C) 2019-2023 Nicola Murino
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as published
  5. by the Free Software Foundation, version 3.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU Affero General Public License for more details.
  10. You should have received a copy of the GNU Affero General Public License
  11. along with this program. If not, see <https://www.gnu.org/licenses/>.
  12. -->
  13. <!DOCTYPE html>
  14. <html lang="en">
  15. <head>
  16. <meta charset="utf-8">
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  18. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  19. <meta name="description" content="">
  20. <meta name="author" content="">
  21. <title>{{.Branding.Name}} - Reset password</title>
  22. <link rel="shortcut icon" href="{{.StaticURL}}{{.Branding.FaviconPath}}" />
  23. <!-- Custom styles for this template-->
  24. {{- range .Branding.DefaultCSS}}
  25. <link href="{{$.StaticURL}}{{.}}" rel="stylesheet" type="text/css">
  26. {{- end}}
  27. <style>
  28. {{template "commoncss" .}}
  29. </style>
  30. {{range .Branding.ExtraCSS}}
  31. <link href="{{$.StaticURL}}{{.}}" rel="stylesheet" type="text/css">
  32. {{end}}
  33. </head>
  34. <body class="bg-gradient-primary">
  35. <div class="container">
  36. <!-- Outer Row -->
  37. <div class="row justify-content-center">
  38. <div class="col-xl-6 col-lg-7 col-md-9">
  39. <div class="card o-hidden border-0 shadow-lg my-5">
  40. <div class="card-body p-0">
  41. <!-- Nested Row within Card Body -->
  42. <div class="row">
  43. <div class="col-lg-12">
  44. <div class="p-5">
  45. <div class="text-center">
  46. <h1 class="h4 text-gray-900 mb-4">Reset Password</h1>
  47. <p class="mb-4">Check your email for the confirmation code</p>
  48. </div>
  49. {{if .Error}}
  50. <div class="alert alert-warning alert-dismissible fade show" role="alert">
  51. {{.Error}}
  52. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  53. <span aria-hidden="true">&times;</span>
  54. </button>
  55. </div>
  56. {{end}}
  57. <form id="forgot_password_form" action="{{.CurrentURL}}" method="POST" autocomplete="off"
  58. class="user-custom">
  59. <div class="form-group">
  60. <input type="text" class="form-control form-control-user-custom"
  61. id="inputCode" name="code" placeholder="Confirmation code" spellcheck="false" required>
  62. </div>
  63. <div class="form-group">
  64. <input type="password" class="form-control form-control-user-custom"
  65. id="inputPassword" name="password" placeholder="New Password" autocomplete="new-password" spellcheck="false" required>
  66. </div>
  67. <input type="hidden" name="_form_token" value="{{.CSRFToken}}">
  68. <button type="submit" class="btn btn-primary btn-user-custom btn-block">
  69. Update Password & Login
  70. </button>
  71. </form>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <!-- Bootstrap core JavaScript-->
  81. <script src="{{.StaticURL}}/vendor/jquery/jquery.min.js"></script>
  82. <script src="{{.StaticURL}}/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  83. <!-- Core plugin JavaScript-->
  84. <script src="{{.StaticURL}}/vendor/jquery-easing/jquery.easing.min.js"></script>
  85. <!-- Custom scripts for all pages-->
  86. <script src="{{.StaticURL}}/js/sb-admin-2.min.js"></script>
  87. </body>
  88. </html>