From 19418b9bfac08d3b262f4b18a7bad6a5c55f5f0c Mon Sep 17 00:00:00 2001 From: gpYang Date: Thu, 2 Apr 2020 14:56:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 失败了需要刷新验证码,不然更容易暴力破解 --- QMPlusVuePage/src/view/login/login.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/QMPlusVuePage/src/view/login/login.vue b/QMPlusVuePage/src/view/login/login.vue index 592a7e39..4159a358 100644 --- a/QMPlusVuePage/src/view/login/login.vue +++ b/QMPlusVuePage/src/view/login/login.vue @@ -93,6 +93,7 @@ export default { message: '请正确填写登录信息', showClose: true }) + this.loginVefify() return false } }) From a4a12cab4ee8ba170deac4c8d71cd82c7cba86e0 Mon Sep 17 00:00:00 2001 From: gpYang Date: Fri, 3 Apr 2020 09:57:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=90=8E=E5=88=B7=E6=96=B0=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 防止被暴力破解 --- QMPlusVuePage/src/view/login/login.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QMPlusVuePage/src/view/login/login.vue b/QMPlusVuePage/src/view/login/login.vue index 4159a358..e22492b9 100644 --- a/QMPlusVuePage/src/view/login/login.vue +++ b/QMPlusVuePage/src/view/login/login.vue @@ -86,7 +86,8 @@ export default { async submitForm() { this.$refs.loginForm.validate(async v => { if (v) { - await this.login() + this.login() + this.loginVefify() } else { this.$message({ type: 'error',