WIP new WebAdmin: two factor auth page

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-01-18 20:25:07 +01:00
parent 91802fad3e
commit 73b2573b14
4 changed files with 581 additions and 382 deletions

View File

@@ -494,7 +494,7 @@ func loadAdminTemplates(templatesPath string) {
filepath.Join(templatesPath, templateAdminDir, templateIPList), filepath.Join(templatesPath, templateAdminDir, templateIPList),
} }
mfaPaths := []string{ mfaPaths := []string{
filepath.Join(templatesPath, templateCommonDir, templateCommonCSS), filepath.Join(templatesPath, templateCommonDir, templateCommonBase),
filepath.Join(templatesPath, templateAdminDir, templateBase), filepath.Join(templatesPath, templateAdminDir, templateBase),
filepath.Join(templatesPath, templateAdminDir, templateMFA), filepath.Join(templatesPath, templateAdminDir, templateMFA),
} }

View File

@@ -71,7 +71,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
<div class="fs-4 text-gray-800"> <div class="fs-4 text-gray-800">
<span data-i18n="{{.Success}}"></span> <span data-i18n="{{.Success}}"></span>
{{- if .Text}} {{- if .Text}}
{{.Text}} <span> {{.Text}}</span>
{{- end}} {{- end}}
</div> </div>
</div> </div>

File diff suppressed because it is too large Load Diff

View File

@@ -600,7 +600,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
} }
let postData = { let postData = {
protocols: protocolsArray protocols: protocolsArray
} };
if (full){ if (full){
postData.config_name = configName; postData.config_name = configName;
postData.secret = { postData.secret = {