@@ -99,6 +99,11 @@ class SignUpViewModel extends _$SignUpViewModel {
return;
}
+ if (!RegExp(r'^(?=.*[A-Z])(?=.*[@#$%^&+=.]).{8,}$').hasMatch(password)) {
+ ToastEngine.show("Password must contain at least one uppercase letter, one special character (@#\$%^&+=), and be at least 8 characters long");
+ return;
+ }
+
//短信验证码之前的图片验证码弹窗
DialogEngine.show(