|
|
|
@ -110,6 +110,7 @@ class _CompleteProfilePageState extends State<CompleteProfilePage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<void> performCompleteProfile() async {
|
|
|
|
Future<void> performCompleteProfile() async {
|
|
|
|
|
|
|
|
if(validateStructure(password??"")){
|
|
|
|
if (password == confirmPassword) {
|
|
|
|
if (password == confirmPassword) {
|
|
|
|
print(widget.user.data!.userId??"userId");
|
|
|
|
print(widget.user.data!.userId??"userId");
|
|
|
|
Utils.showLoading(context);
|
|
|
|
Utils.showLoading(context);
|
|
|
|
@ -126,5 +127,15 @@ class _CompleteProfilePageState extends State<CompleteProfilePage> {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Utils.showToast("Please enter same password");
|
|
|
|
Utils.showToast("Please enter same password");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
Utils.showToast("Password Should contains character, Number, Capital and small letters");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool validateStructure(String value){
|
|
|
|
|
|
|
|
String pattern = r'^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[!@#\$&*~]).{6,}$';
|
|
|
|
|
|
|
|
RegExp regExp = new RegExp(pattern);
|
|
|
|
|
|
|
|
return regExp.hasMatch(value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|