fix: apigateway sends encrypt_passwd to indicate passwd encryption

This commit is contained in:
Qiu Jian
2022-04-27 13:01:30 +08:00
parent e4df9aa6b0
commit 1e97ea3693
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -146,6 +146,7 @@ func (h *AuthHandlers) GetRegionsResponse(ctx context.Context, w http.ResponseWr
SCommonConfig: agapi.SCommonConfig{
ApiServer: options.Options.ApiServer,
},
EncryptPasswd: true,
}
s := auth.GetAdminSession(ctx, regions[0], "")
+2
View File
@@ -37,5 +37,7 @@ type SRegionsReponse struct {
Idps []SIdp `json:"idps,allowempty"`
ReturnFullDomains bool `json:"return_full_domains"`
EncryptPasswd bool `json:"encrypt_passwd"`
SCommonConfig
}