|
@@ -110,7 +110,7 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div class="verificationCode-box">
|
|
|
+ <div class="verificationCode-box" v-if="dynamicVerificationShow">
|
|
|
<input
|
|
|
type="text"
|
|
|
:class="'input'"
|
|
@@ -123,7 +123,7 @@
|
|
|
:class="VerificationCodeShow ? 'waitTime' : 'getVerification'">
|
|
|
{{ VerificationCodeShow ? time+'s' : $t("Key93") }}
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<!-- 验证码登录 v-show="loginType == '验证码'"
|
|
|
-->
|
|
@@ -222,10 +222,11 @@ import { mapGetters } from "vuex";
|
|
|
import UserAgreement from "./UserAgreement.vue"; // 用户协议
|
|
|
import md5 from "js-md5";
|
|
|
import { setI18nLang } from "@/utils/i18n";
|
|
|
+import { getConfigInfor } from "@/utils/index";
|
|
|
export default {
|
|
|
//import引入的组件需要注入到对象中才能使用
|
|
|
components: { UserAgreement },
|
|
|
- props: ["ForgetType", "changeLoginReg", "changeLoginType", "getChildSysList"],
|
|
|
+ props: ["ForgetType", "changeLoginReg", "changeLoginType", "getChildSysList","changeEmailTips"],
|
|
|
data() {
|
|
|
//这里存放数据
|
|
|
return {
|
|
@@ -248,7 +249,8 @@ export default {
|
|
|
verificationCodeimgID: "", // 图形验证码ID
|
|
|
verificationCodeLoading: true, // 图形验证码的flag
|
|
|
time: 60, //获取验证码的时间
|
|
|
- emailCode: ""
|
|
|
+ emailCode: "",
|
|
|
+ dynamicVerificationShow: getConfigInfor()&&getConfigInfor().is_enable_dynamic_verification_code_for_user_login=='true' ? true : false
|
|
|
};
|
|
|
},
|
|
|
//计算属性 类似于data概念
|
|
@@ -362,9 +364,9 @@ export default {
|
|
|
password: md5(this.password).toUpperCase(),
|
|
|
verification_code_image_text: this.verificationCode,
|
|
|
verification_code_image_id: this.verificationCodeimgID,
|
|
|
- // dynamic_verification_type:'EMAIL',
|
|
|
- // phone_or_email: this.email_phone,
|
|
|
- // dynamic_verification_code: this.emailCode
|
|
|
+ dynamic_verification_type:'EMAIL',
|
|
|
+ phone_or_email: this.email_phone,
|
|
|
+ dynamic_verification_code: this.emailCode
|
|
|
};
|
|
|
if (this.rememberMe) {
|
|
|
} else {
|
|
@@ -386,6 +388,9 @@ export default {
|
|
|
localStorage.setItem("user_name", JSON.stringify(obj));
|
|
|
}
|
|
|
setToken(res);
|
|
|
+ if(res.last_update_password_days>=res.sys_recommend_password_update_days){
|
|
|
+ this.changeEmailTips(res.last_update_password_days)
|
|
|
+ }else{
|
|
|
this.$message.success(this.$t("Key442"));
|
|
|
setI18nLang(this.language_type).then(() => {
|
|
|
if (
|
|
@@ -398,6 +403,7 @@ export default {
|
|
|
this.getChildSysList();
|
|
|
}
|
|
|
});
|
|
|
+ }
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.isLogin = false;
|