fix: use new secrets

This commit is contained in:
Jason Song
2022-12-22 14:44:22 +08:00
parent d183b32aa8
commit 058675f7e5
7 changed files with 17 additions and 55 deletions

View File

@ -46,7 +46,6 @@ import (
"code.gitea.io/gitea/modules/timeutil"
"code.gitea.io/gitea/modules/util"
"code.gitea.io/gitea/services/gitdiff"
secret_service "code.gitea.io/gitea/services/secrets"
"github.com/editorconfig/editorconfig-core-go/v2"
)
@ -476,13 +475,6 @@ func NewFuncMap() []template.FuncMap {
"RefShortName": func(ref string) string {
return git.RefName(ref).ShortName()
},
"Shadow": func(s string) string {
return "******"
},
"DecryptSecret": func(s string) string {
v, _ := secret_service.DecryptString(s)
return v
},
}}
}