diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index 898f575a1..812cc9720 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -204,7 +204,8 @@ "ipDomain": "IP(域名)", "HostProtocol": "主机协议", "DatabaseProtocol": "数据库协议", - "OtherProtocol": "其它协议" + "OtherProtocol": "其它协议", + "PasswordOrToken": "密码 / 令牌" }, "audits": { "Hosts": "主机", diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 041b33f26..dce4b7cb1 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -203,7 +203,8 @@ "ipDomain": "IP(Domain)", "HostProtocol": "Host Protocol", "DatabaseProtocol": "Database Protocol", - "OtherProtocol": "Other Protocol" + "OtherProtocol": "Other Protocol", + "PasswordOrToken": "Password / Token" }, "audits": { "Hosts": "Host", diff --git a/src/views/accounts/ApplicationAccount/ApplicationAccountList.vue b/src/views/accounts/ApplicationAccount/ApplicationAccountList.vue index 1020532ee..d7668f557 100644 --- a/src/views/accounts/ApplicationAccount/ApplicationAccountList.vue +++ b/src/views/accounts/ApplicationAccount/ApplicationAccountList.vue @@ -22,7 +22,7 @@ - + @@ -195,7 +195,11 @@ export default { this.$axios.get(`/api/v1/assets/system-users/${this.MFAInfo.systemUser.id}/auth-info/`).then(res => { this.MFAConfirmed = true this.MFAInfo.username = res.username - this.MFAInfo.password = res.password + if (res.protocol === 'k8s') { + this.MFAInfo.password = res.token + } else { + this.MFAInfo.password = res.password + } }) } else { this.showMFADialog = true