|
@@ -128,7 +128,8 @@
|
|
import { phone, smscode } from "@/plugins/formRules";
|
|
import { phone, smscode } from "@/plugins/formRules";
|
|
import { login, getSmsCode, getSchoolInfo, getAccountSmsCode } from "../api";
|
|
import { login, getSmsCode, getSchoolInfo, getAccountSmsCode } from "../api";
|
|
import { Base64 } from "@/plugins/crypto";
|
|
import { Base64 } from "@/plugins/crypto";
|
|
-import ResetPwd from "@/modules/base/components/ResetPwd";
|
|
|
|
|
|
+import { MD5 } from "@/plugins/md5";
|
|
|
|
+import ResetPwd from "@/modules/base/components/ResetPwd.vue";
|
|
import { getOrgCode } from "@/constants/app";
|
|
import { getOrgCode } from "@/constants/app";
|
|
import fetchSmsMixins from "../fetchSmsMixins";
|
|
import fetchSmsMixins from "../fetchSmsMixins";
|
|
|
|
|
|
@@ -256,7 +257,11 @@ export default {
|
|
this.$ls.set("schoolName", curSchool.name, this.GLOBAL.authTimeout);
|
|
this.$ls.set("schoolName", curSchool.name, this.GLOBAL.authTimeout);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.$ls.set("user", data, this.GLOBAL.authTimeout);
|
|
|
|
|
|
+ this.$ls.set(
|
|
|
|
+ "user",
|
|
|
|
+ { ...data, pwd: MD5(this.loginModel.password) },
|
|
|
|
+ this.GLOBAL.authTimeout
|
|
|
|
+ );
|
|
|
|
|
|
this.$ls.set("token", data.accessToken, this.GLOBAL.authTimeout);
|
|
this.$ls.set("token", data.accessToken, this.GLOBAL.authTimeout);
|
|
|
|
|
|
@@ -298,7 +303,11 @@ export default {
|
|
this.$ls.set("schoolName", curSchool.name, this.GLOBAL.authTimeout);
|
|
this.$ls.set("schoolName", curSchool.name, this.GLOBAL.authTimeout);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.$ls.set("user", data, this.GLOBAL.authTimeout);
|
|
|
|
|
|
+ this.$ls.set(
|
|
|
|
+ "user",
|
|
|
|
+ { ...data, pwd: MD5(this.loginModel.password) },
|
|
|
|
+ this.GLOBAL.authTimeout
|
|
|
|
+ );
|
|
|
|
|
|
this.$ls.set("token", data.accessToken, this.GLOBAL.authTimeout);
|
|
this.$ls.set("token", data.accessToken, this.GLOBAL.authTimeout);
|
|
|
|
|