锁定二次校验区分环境
parent
28297aa9ba
commit
c2607041ff
24
src/main.js
24
src/main.js
|
@ -414,14 +414,7 @@ async function VueInit() {
|
|||
if (md5(_vm.unlock.my_password) === my_password && my_username === _vm.unlock.my_username) {
|
||||
resetReadingRestTime().then(() => {
|
||||
})
|
||||
sendMFAEmail({ UserId: my_userid }).then((res) => {
|
||||
done();
|
||||
Vue.prototype.$MFA({
|
||||
status: "lock",
|
||||
UserId: my_userid,
|
||||
EMail: my_EMail,
|
||||
username: my_username,
|
||||
callBack: () => {
|
||||
const closeLock = (_vm) => {
|
||||
_vm.$message.success(lang === 'zh' ? '解锁成功,请继续操作' : 'Unlocked successfully. Please continue operation.')
|
||||
_vm.unlock = {
|
||||
my_username: null,
|
||||
|
@ -437,9 +430,24 @@ async function VueInit() {
|
|||
setTimeout(() => {
|
||||
done()
|
||||
}, 500)
|
||||
}
|
||||
if (process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa') {
|
||||
sendMFAEmail({ UserId: my_userid }).then((res) => {
|
||||
done();
|
||||
Vue.prototype.$MFA({
|
||||
status: "lock",
|
||||
UserId: my_userid,
|
||||
EMail: my_EMail,
|
||||
username: my_username,
|
||||
callBack: () => {
|
||||
closeLock(_vm)
|
||||
},
|
||||
})
|
||||
})
|
||||
} else {
|
||||
closeLock(_vm)
|
||||
}
|
||||
|
||||
} else {
|
||||
// console.log(111)
|
||||
_vm.$message.error(lang === 'zh' ? '请输入正确用户名密码' : 'Please enter the correct password.')
|
||||
|
|
Loading…
Reference in New Issue