fix(protocols): 修复第三方协议授权码密码验证后解密展示并优化交互提示

This commit is contained in:
xuans committed 2026-09-13 04:24:19 +08:00
1 parent 231fe05fe0
commit b107090168
4 files changed
+31 -5

No files matched your search

+6
View File
@@ -164,12 +164,18 @@ func LoadSecurityContext(ctx *context.Context) {
func credentialRuntime() *credentials.Service {
if service := currentSecurityRuntime().credentials; service != nil {
if service.VaultRoot() == "" && config.ROOT_PATH != "" {
service.SetVaultRoot(config.ROOT_PATH)
}
return service
}
if db.Instance == nil {
return nil
}
service, _ := credentials.NewService(db.Instance)
if service != nil && config.ROOT_PATH != "" {
service.SetVaultRoot(config.ROOT_PATH)
}
return service
}