dev_forum
杨树林 6 years ago
parent 7226e28176
commit 3b7afcae85

@ -193,14 +193,25 @@ class LoginRegisterComponent extends Component {
this.openNotification(`两次输入的密码不一致`);
return
}
else if (this.state.password !==undefined ||this.state.password.length>0&&this.state.password.length<8){
this.setState({
Phonenumberisnotcosmmm:"密码不能少于8位",
})
return
} else if (this.state.password !==undefined ||this.state.password.length>0&&this.state.password.length>16){
this.setState({
Phonenumberisnotcosmmm:"密码不能超过16位",
})
return
}
else if (this.state.passwords !==undefined ||this.state.passwords.length>0&&this.state.passwords.length<8){
this.setState({
Phonenumberisnotcosymmm:"密码不能少于8位",
Phonenumberisnotcosymmmm:"二次密码不能少于8位",
})
return
} else if (this.state.passwords !==undefined ||this.state.passwords.length>0&&this.state.passwords.length>16){
this.setState({
Phonenumberisnotcosymmm:"密码不能超过16位",
Phonenumberisnotcosymmmm:"二次密码不能超过16位",
})
return
}

Loading…
Cancel
Save