Merge branch 'dev-pwd' into dev-codegen-1
This commit is contained in:
@@ -21,7 +21,7 @@ import { useNav } from "@/layout/hooks/useNav";
|
|||||||
import type { FormInstance } from "element-plus";
|
import type { FormInstance } from "element-plus";
|
||||||
import { operates, thirdParty } from "./utils/enums";
|
import { operates, thirdParty } from "./utils/enums";
|
||||||
import { useLayout } from "@/layout/hooks/useLayout";
|
import { useLayout } from "@/layout/hooks/useLayout";
|
||||||
import { rsaEncrypt } from "@/utils/crypt";
|
// import { rsaEncrypt } from "@/utils/crypt"; // 已移除RSA加密
|
||||||
import { getTopMenu, initRouter } from "@/router/utils";
|
import { getTopMenu, initRouter } from "@/router/utils";
|
||||||
import { avatar, bg, illustration } from "./utils/static";
|
import { avatar, bg, illustration } from "./utils/static";
|
||||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
@@ -87,7 +87,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
|
|||||||
}
|
}
|
||||||
CommonAPI.loginByPassword({
|
CommonAPI.loginByPassword({
|
||||||
username: ruleForm.username,
|
username: ruleForm.username,
|
||||||
password: rsaEncrypt(ruleForm.password),
|
password: ruleForm.password, // 直接使用明文密码,不再加密
|
||||||
captchaCode: ruleForm.captchaCode,
|
captchaCode: ruleForm.captchaCode,
|
||||||
captchaCodeKey: ruleForm.captchaCodeKey,
|
captchaCodeKey: ruleForm.captchaCodeKey,
|
||||||
grantType: "password",
|
grantType: "password",
|
||||||
|
|||||||
Reference in New Issue
Block a user