mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
WIP new WebAdmin: two factor auth page
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -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),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user