From 869975b3c35429c3fd17842b61fd6f494a13d637 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Mon, 9 Nov 2026 20:28:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(merchant):=20=E5=95=86=E5=AE=B6=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8F=B0=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=8F=90=E4=BA=A4=E5=89=8D=E5=85=88=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?MD5=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages-sub/merchant/pages/login/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages-sub/merchant/pages/login/index.vue b/pages-sub/merchant/pages/login/index.vue index 18270bc..1e29939 100644 --- a/pages-sub/merchant/pages/login/index.vue +++ b/pages-sub/merchant/pages/login/index.vue @@ -130,6 +130,7 @@ import { ref, reactive, onBeforeUnmount, nextTick } from 'vue' import { onLoad } from '@dcloudio/uni-app' import storage from '@/utils/storage.js' +import { md5 } from '@/utils/md5.js' import myVerification from '@/components/verification/verification.vue' import { userLogin, @@ -250,7 +251,7 @@ const handleVerificationSuccess = () => { } } -// 执行账号密码登录 +// 执行账号密码登录(密码需先做 MD5 摘要以匹配后端 BCrypt(md5(明文)) 校验口径) const doAccountLogin = async () => { submitting.value = true uni.showLoading({ title: '正在登录...' }) @@ -258,7 +259,7 @@ const doAccountLogin = async () => { try { const res: any = await userLogin({ username: accountForm.username.trim(), - password: accountForm.password, + password: md5(accountForm.password), }) uni.hideLoading()