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
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF
4 changed files with 581 additions and 382 deletions

View file

@ -494,7 +494,7 @@ func loadAdminTemplates(templatesPath string) {
filepath.Join(templatesPath, templateAdminDir, templateIPList),
}
mfaPaths := []string{
filepath.Join(templatesPath, templateCommonDir, templateCommonCSS),
filepath.Join(templatesPath, templateCommonDir, templateCommonBase),
filepath.Join(templatesPath, templateAdminDir, templateBase),
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">
<span data-i18n="{{.Success}}"></span>
{{- if .Text}}
{{.Text}}
<span> {{.Text}}</span>
{{- end}}
</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 = {
protocols: protocolsArray
}
};
if (full){
postData.config_name = configName;
postData.secret = {