提交 a25f6626 编写于 作者: yangxu's avatar yangxu

feat: 登录密码进行加密

上级 bd63d6f7
registry=http://npm.zhr.icu:4873/
registry=https://registry.npmjs.org/
\ No newline at end of file
......@@ -31,6 +31,7 @@
"qs": "^6.11.2",
"qx-util": "^0.4.8",
"ramda": "^0.29.1",
"sm-crypto": "^0.3.13",
"view-design": "^4.7.0",
"vite-plugin-style-import": "1.4.1",
"vue": "^2.7.15",
......@@ -45,6 +46,7 @@
"@types/path-browserify": "^1.0.0",
"@types/qs": "^6.9.10",
"@types/ramda": "^0.28.20",
"@types/sm-crypto": "^0.3.4",
"@types/systemjs": "^6.13.0",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
......
此差异已折叠。
......@@ -8,6 +8,7 @@ import {
} from 'vue';
import { clearCookie, setCookie } from 'qx-util';
import { useNamespace, useRoute, useRouter } from '@ibiz-template/vue-util';
import { sm3 } from 'sm-crypto';
import './kq-login-view.scss';
interface LoginData {
......@@ -76,7 +77,7 @@ export default defineComponent({
clearCookie(CoreConst.TOKEN, true);
const res = await ibiz.auth.v7login(
loginData.username,
loginData.password,
sm3(loginData.password).toUpperCase(),
);
if (res.ok) {
const { data } = res;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册