adminsetup.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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>SFTPGo - Setup</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. </head>
  31. <body class="bg-gradient-primary">
  32. <div class="container">
  33. <!-- Outer Row -->
  34. <div class="row justify-content-center">
  35. <div class="col-xl-7 col-lg-8 col-md-10">
  36. <div class="card o-hidden border-0 shadow-lg my-5">
  37. <div class="card-body p-0">
  38. <!-- Nested Row within Card Body -->
  39. <div class="row">
  40. <div class="col-lg-12">
  41. <div class="p-5">
  42. <div class="text-center">
  43. <h1 class="h5 text-gray-900 mb-4">To start using SFTPGo you need to create an admin user</h1>
  44. </div>
  45. {{if .Error}}
  46. <div class="alert alert-warning alert-dismissible fade show" role="alert">
  47. {{.Error}}
  48. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  49. <span aria-hidden="true">&times;</span>
  50. </button>
  51. </div>
  52. {{end}}
  53. <form id="login_form" action="{{.CurrentURL}}" method="POST" autocomplete="off"
  54. class="user-custom">
  55. {{if .HasInstallationCode}}
  56. <div class="form-group">
  57. <input type="text" class="form-control form-control-user-custom" id="inputInstallCode"
  58. name="install_code" placeholder="{{.InstallationCodeHint}}" value="" required>
  59. </div>
  60. {{end}}
  61. <div class="form-group">
  62. <input type="text" class="form-control form-control-user-custom" id="inputUsername"
  63. name="username" placeholder="Username" value="{{.Username}}" spellcheck="false" required>
  64. </div>
  65. <div class="form-group">
  66. <input type="password" class="form-control form-control-user-custom" id="inputPassword"
  67. name="password" placeholder="Password" autocomplete="new-password" spellcheck="false" required>
  68. </div>
  69. <div class="form-group">
  70. <input type="password" class="form-control form-control-user-custom" id="inputConfirmPassword"
  71. name="confirm_password" placeholder="Repeat password" autocomplete="new-password" spellcheck="false" required>
  72. </div>
  73. <input type="hidden" name="_form_token" value="{{.CSRFToken}}">
  74. <button type="submit" class="btn btn-primary btn-user-custom btn-block">
  75. Create admin
  76. </button>
  77. </form>
  78. {{if not .HideSupportLink}}
  79. <hr>
  80. <div class="text-center">
  81. <a class="small" href="https://github.com/drakkan/sftpgo#sponsors" target="_blank">SFTPGo needs your help</a>
  82. </div>
  83. {{end}}
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <!-- Bootstrap core JavaScript-->
  93. <script src="{{.StaticURL}}/vendor/jquery/jquery.min.js"></script>
  94. <script src="{{.StaticURL}}/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  95. <!-- Core plugin JavaScript-->
  96. <script src="{{.StaticURL}}/vendor/jquery-easing/jquery.easing.min.js"></script>
  97. <!-- Custom scripts for all pages-->
  98. <script src="{{.StaticURL}}/js/sb-admin-2.min.js"></script>
  99. </body>
  100. </html>