From 1eb92e30dff17c2bdb229fac0aca6183c0849d4a Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Tue, 9 Dec 2025 18:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E5=8A=A0?= =?UTF-8?q?=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/amendPassword.vue | 4 +++- pages/mine/changPassword/index.vue | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/amendPassword.vue b/pages/amendPassword.vue index 90cdd03..434e1af 100644 --- a/pages/amendPassword.vue +++ b/pages/amendPassword.vue @@ -78,6 +78,7 @@ import { getTextCode,forgetPwdByCodeApi } from '@/api/login'; import AES from '@/utils/aes'; +import { encryptWithSM4 } from '@/utils/sm' export default { data() { return { @@ -147,7 +148,8 @@ export default { let param = { "phone": this.form.phone, "code": this.form.code, - "newPassword":AES.encrypt(this.form.newPassWord) + // "newPassword":AES.encrypt(this.form.newPassWord) + "newPassword":encryptWithSM4(this.form.newPassWord) // "newPassword":this.form.newPassWord } forgetPwdByCodeApi(param).then(res => { diff --git a/pages/mine/changPassword/index.vue b/pages/mine/changPassword/index.vue index 02693ff..3086c8c 100644 --- a/pages/mine/changPassword/index.vue +++ b/pages/mine/changPassword/index.vue @@ -74,6 +74,7 @@ import { getTextCode,resetPwdApi } from '@/api/login'; import AES from '@/utils/aes'; +import { encryptWithSM4 } from '@/utils/sm' export default { data() { return { @@ -143,7 +144,8 @@ export default { let param = { "phone": this.form.phone, "code": this.form.code, - "newPassword":AES.encrypt(this.form.newPassWord) + // "newPassword":AES.encrypt(this.form.newPassWord) + "newPassword":encryptWithSM4(this.form.newPassWord) // "newPassword":this.form.newPassWord } resetPwdApi(param).then(res => {