2022-07-17 18:16:00 +00:00
|
|
|
<!--
|
2023-01-03 09:18:30 +00:00
|
|
|
Copyright (C) 2019-2023 Nicola Murino
|
2022-07-17 18:16:00 +00:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published
|
|
|
|
by the Free Software Foundation, version 3.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
2023-01-03 09:18:30 +00:00
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2022-07-17 18:16:00 +00:00
|
|
|
-->
|
2021-05-14 17:21:15 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="author" content="">
|
|
|
|
|
|
|
|
<title>SFTPGo - Setup</title>
|
|
|
|
|
2022-05-13 17:40:52 +00:00
|
|
|
<link rel="shortcut icon" href="{{.StaticURL}}{{.Branding.FaviconPath}}" />
|
2021-05-14 17:21:15 +00:00
|
|
|
|
|
|
|
<!-- Custom styles for this template-->
|
2022-05-21 09:05:58 +00:00
|
|
|
<link href="{{.StaticURL}}{{.Branding.DefaultCSS}}" rel="stylesheet">
|
2021-05-14 17:21:15 +00:00
|
|
|
<style>
|
2022-05-14 09:54:55 +00:00
|
|
|
{{template "commoncss" .}}
|
2021-05-14 17:21:15 +00:00
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="bg-gradient-primary">
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<!-- Outer Row -->
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
|
|
|
|
<div class="col-xl-7 col-lg-8 col-md-10">
|
|
|
|
|
|
|
|
<div class="card o-hidden border-0 shadow-lg my-5">
|
|
|
|
<div class="card-body p-0">
|
|
|
|
<!-- Nested Row within Card Body -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="p-5">
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="h5 text-gray-900 mb-4">To start using SFTPGo you need to create an admin user</h1>
|
|
|
|
</div>
|
|
|
|
{{if .Error}}
|
2023-02-10 17:07:23 +00:00
|
|
|
<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
|
|
|
{{.Error}}
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2021-05-14 17:21:15 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<form id="login_form" action="{{.CurrentURL}}" method="POST" autocomplete="off"
|
|
|
|
class="user-custom">
|
2022-02-27 12:08:47 +00:00
|
|
|
{{if .HasInstallationCode}}
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control form-control-user-custom" id="inputInstallCode"
|
|
|
|
name="install_code" placeholder="{{.InstallationCodeHint}}" value="" required>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2021-05-14 17:21:15 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control form-control-user-custom" id="inputUsername"
|
2023-01-15 19:20:39 +00:00
|
|
|
name="username" placeholder="Username" value="{{.Username}}" spellcheck="false" required>
|
2021-05-14 17:21:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="password" class="form-control form-control-user-custom" id="inputPassword"
|
2023-01-15 19:20:39 +00:00
|
|
|
name="password" placeholder="Password" autocomplete="new-password" spellcheck="false" required>
|
2021-05-14 17:21:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="password" class="form-control form-control-user-custom" id="inputConfirmPassword"
|
2023-01-15 19:20:39 +00:00
|
|
|
name="confirm_password" placeholder="Repeat password" autocomplete="new-password" spellcheck="false" required>
|
2021-05-14 17:21:15 +00:00
|
|
|
</div>
|
|
|
|
<input type="hidden" name="_form_token" value="{{.CSRFToken}}">
|
|
|
|
<button type="submit" class="btn btn-primary btn-user-custom btn-block">
|
|
|
|
Create admin
|
|
|
|
</button>
|
|
|
|
</form>
|
2022-07-11 14:14:44 +00:00
|
|
|
{{if not .HideSupportLink}}
|
|
|
|
<hr>
|
|
|
|
<div class="text-center">
|
2022-07-17 14:02:45 +00:00
|
|
|
<a class="small" href="https://github.com/drakkan/sftpgo#sponsors" target="_blank">SFTPGo needs your help</a>
|
2022-07-11 14:14:44 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2021-05-14 17:21:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Bootstrap core JavaScript-->
|
|
|
|
<script src="{{.StaticURL}}/vendor/jquery/jquery.min.js"></script>
|
|
|
|
<script src="{{.StaticURL}}/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
|
|
|
|
|
|
<!-- Core plugin JavaScript-->
|
|
|
|
<script src="{{.StaticURL}}/vendor/jquery-easing/jquery.easing.min.js"></script>
|
|
|
|
|
|
|
|
<!-- Custom scripts for all pages-->
|
|
|
|
<script src="{{.StaticURL}}/js/sb-admin-2.min.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|