MFA验证

uat_us
wangxiaoshuang 2025-01-03 09:19:07 +08:00
parent 8799431f7a
commit f65042a5c2
2 changed files with 5 additions and 5 deletions

View File

@ -83,7 +83,7 @@ export default {
second: 60, second: 60,
form: { form: {
Code: null, Code: null,
UserId: null, IdentityUserId: null,
EMail: null, EMail: null,
username: null, username: null,
}, },
@ -115,7 +115,7 @@ export default {
methods: { methods: {
open(data) { open(data) {
let { UserId, status, username, EMail } = data; let { UserId, status, username, EMail } = data;
this.form.UserId = UserId; this.form.IdentityUserId = UserId;
this.status = status ? status : "login"; this.status = status ? status : "login";
this.form.username = username; this.form.username = username;
this.form.EMail = EMail; this.form.EMail = EMail;
@ -137,7 +137,7 @@ export default {
if (this.status === "login") { if (this.status === "login") {
this.$message.success(this.$t("mfa:message:verifySuccess")); this.$message.success(this.$t("mfa:message:verifySuccess"));
} }
this.$emit("success", this.form.UserId); this.$emit("success", this.form.IdentityUserId);
this.cancel(); this.cancel();
} }
} catch (err) { } catch (err) {
@ -154,7 +154,7 @@ export default {
this.timer = null; this.timer = null;
} }
let data = { let data = {
UserId: this.form.UserId, UserId: this.form.IdentityUserId,
}; };
if (this.status === "lock") { if (this.status === "lock") {
data.MfaType = 1; data.MfaType = 1;

View File

@ -417,7 +417,7 @@ export default {
return return
} else if (res.IsMFA) { } else if (res.IsMFA) {
this.$MFA({ this.$MFA({
UserId: res.BasicInfo.Id, UserId: res.BasicInfo.IdentityUserId,
EMail: res.BasicInfo.EMail, EMail: res.BasicInfo.EMail,
username: this.loginForm.username, username: this.loginForm.username,
callBack: this.loginIn, callBack: this.loginIn,