mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-10 06:12:56 +08:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user