feat: add origin field for mfaAccountTable (#3463)

This commit is contained in:
IZUMI-Zu
2024-12-29 22:51:21 +08:00
committed by GitHub
parent 0d239ba1cf
commit b57b64fc36
2 changed files with 13 additions and 0 deletions

View File

@ -237,6 +237,7 @@ type MfaAccount struct {
AccountName string `xorm:"varchar(100)" json:"accountName"` AccountName string `xorm:"varchar(100)" json:"accountName"`
Issuer string `xorm:"varchar(100)" json:"issuer"` Issuer string `xorm:"varchar(100)" json:"issuer"`
SecretKey string `xorm:"varchar(100)" json:"secretKey"` SecretKey string `xorm:"varchar(100)" json:"secretKey"`
Origin string `xorm:"varchar(100)" json:"origin"`
} }
type FaceId struct { type FaceId struct {

View File

@ -105,6 +105,18 @@ class MfaAccountTable extends React.Component {
); );
}, },
}, },
{
title: i18next.t("mfaAccount:Origin"),
dataIndex: "origin",
key: "origin",
render: (text, record, index) => {
return (
<Input value={text} onChange={e => {
this.updateField(table, index, "origin", e.target.value);
}} />
);
},
},
{ {
title: i18next.t("mfaAccount:Secret Key"), title: i18next.t("mfaAccount:Secret Key"),
dataIndex: "secretKey", dataIndex: "secretKey",