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