2 Commits

  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;
}
if (password.value.length < 8) {
uni.showToast({
title: "密码长度不能少于8位",
icon: "none",
});
return false;
}
}
if (switchType.value === "Phone") {

8
pages/start/recoverPassword/recoverPassword.vue

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

Loading…
Cancel
Save