Browse Source

密码增加校验大于8位

milestone-20251031-简版功能开发
wangyi 3 weeks ago
parent
commit
bbe511b103
  1. 9
      pages/start/login/login.vue
  2. 8
      pages/start/recoverPassword/recoverPassword.vue

9
pages/start/login/login.vue

@ -431,6 +431,15 @@ function basicVerification() {
}); });
return false; return false;
} }
if (password.value.length < 8) {
uni.showToast({
title: "密码长度不能少于8位",
icon: "none",
});
return false;
}
} }
if (switchType.value === "Phone") { if (switchType.value === "Phone") {

8
pages/start/recoverPassword/recoverPassword.vue

@ -335,6 +335,14 @@ async function register() {
return; return;
} }
if (newPasswordFirst.value.length < 8) {
uni.showToast({
title: "密码长度不能少于8位",
icon: "none",
});
return false;
}
const account = changeAccount(); const account = changeAccount();
const res = await forgetApi({ const res = await forgetApi({

Loading…
Cancel
Save