mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
web setup: add an optional installation code
The purpose of this code is to prevent anyone who can access to the initial setup screen from creating an admin user Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -97,6 +97,12 @@
|
||||
{{end}}
|
||||
<form id="login_form" action="{{.CurrentURL}}" method="POST" autocomplete="off"
|
||||
class="user-custom">
|
||||
{{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}}
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control form-control-user-custom" id="inputUsername"
|
||||
name="username" placeholder="Username" value="{{.Username}}" required>
|
||||
|
||||
Reference in New Issue
Block a user