feat: support QR login for casdoor app (#3190)

* feat: add MFA devices QR code to UserEditPage

* chore: remove mfa devices
This commit is contained in:
IZUMI-Zu
2024-09-08 22:38:13 +08:00
committed by GitHub
parent 0d02b5e768
commit 943edfb48b
2 changed files with 19 additions and 1 deletions

View File

@@ -1050,6 +1050,13 @@ class UserEditPage extends React.Component {
<MfaAccountTable
title={i18next.t("user:MFA accounts")}
table={this.state.user.mfaAccounts}
qrUrl={
"casdoor-app://login/into?serverUrl=" + window.location.origin +
"&clientId=" + this.state.application.clientId +
"&organizationName=" + this.state.organizationName +
"&appName=" + this.state.user.signupApplication
}
icon={this.state.user.avatar}
onUpdateTable={(table) => {this.updateUserField("mfaAccounts", table);}}
/>
</Col>