锁定二次校验区分环境

uat_us
wangxiaoshuang 2024-06-12 14:27:39 +08:00
parent 28297aa9ba
commit c2607041ff
1 changed files with 33 additions and 25 deletions

View File

@ -414,14 +414,7 @@ async function VueInit() {
if (md5(_vm.unlock.my_password) === my_password && my_username === _vm.unlock.my_username) { if (md5(_vm.unlock.my_password) === my_password && my_username === _vm.unlock.my_username) {
resetReadingRestTime().then(() => { resetReadingRestTime().then(() => {
}) })
sendMFAEmail({ UserId: my_userid }).then((res) => { const closeLock = (_vm) => {
done();
Vue.prototype.$MFA({
status: "lock",
UserId: my_userid,
EMail: my_EMail,
username: my_username,
callBack: () => {
_vm.$message.success(lang === 'zh' ? '解锁成功,请继续操作' : 'Unlocked successfully. Please continue operation.') _vm.$message.success(lang === 'zh' ? '解锁成功,请继续操作' : 'Unlocked successfully. Please continue operation.')
_vm.unlock = { _vm.unlock = {
my_username: null, my_username: null,
@ -437,9 +430,24 @@ async function VueInit() {
setTimeout(() => { setTimeout(() => {
done() done()
}, 500) }, 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 { } else {
// console.log(111) // console.log(111)
_vm.$message.error(lang === 'zh' ? '请输入正确用户名密码' : 'Please enter the correct password.') _vm.$message.error(lang === 'zh' ? '请输入正确用户名密码' : 'Please enter the correct password.')