Improved the performance of the AC device

This commit is contained in:
Abdullah Alassaf
2024-07-21 02:10:04 +03:00
parent a67fd44f32
commit 980d1017eb
12 changed files with 404 additions and 308 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ class AuthCubit extends Cubit<AuthState> {
return 'Please enter your password';
}
if (value.isNotEmpty) {
if (!RegExp(r'^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$')
if (!RegExp(
r'^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!"#$%&()*+,-./:;<=>?@[\]^_`{|}~])[A-Za-z\d!"#$%&()*+,-./:;<=>?@[\]^_`{|}~]{8,}$')
.hasMatch(value)) {
return 'Password must contain at least:\n - one uppercase letter.\n - one lowercase letter.\n - one number. \n - special character';
}