mirror of
https://github.com/go-gitea/gitea
synced 2025-10-26 00:48:29 +00:00
fix: use new secrets
This commit is contained in:
@@ -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
|
||||
},
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user