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

feat: 登录密码进行加密

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